This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +9
-6
lines changed Expand file tree Collapse file tree 8 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
// Regression test for #57200
2
+ // FIXME: The error is temporary hack, we'll revisit here at some point.
2
3
3
4
#![ feature( impl_trait_in_bindings) ]
4
5
#![ allow( incomplete_features) ]
Original file line number Diff line number Diff line change 1
1
error: lifetimes in impl Trait types in bindings are not currently supported
2
- --> $DIR/issue-57200.rs:10 :12
2
+ --> $DIR/issue-57200.rs:11 :12
3
3
|
4
4
LL | let f: impl Fn(&'a T) -> &'b T = |x| x;
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 1
1
// Regression test for #57201
2
+ // FIXME: The error is temporary hack, we'll revisit here at some point.
2
3
3
4
#![ feature( impl_trait_in_bindings) ]
4
5
#![ allow( incomplete_features) ]
Original file line number Diff line number Diff line change 1
1
error: lifetimes in impl Trait types in bindings are not currently supported
2
- --> $DIR/issue-57201.rs:10 :13
2
+ --> $DIR/issue-57201.rs:11 :13
3
3
|
4
4
LL | let f: &impl Fn(&'a T) -> &'b T = &|x| x;
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -12,5 +12,6 @@ impl<T> Trait<T> for () {
12
12
}
13
13
14
14
fn main ( ) {
15
- let x: impl Trait < A > = ( ) ; //~ ERROR: opaque type expands to a recursive type
15
+ let x: impl Trait < A > = ( ) ; // FIXME: The error doesn't seem correct.
16
+ //~^ ERROR: opaque type expands to a recursive type
16
17
}
Original file line number Diff line number Diff line change 1
1
error[E0720]: opaque type expands to a recursive type
2
2
--> $DIR/issue-60473.rs:15:12
3
3
|
4
- LL | let x: impl Trait<A> = ();
4
+ LL | let x: impl Trait<A> = (); // FIXME: The error doesn't seem correct.
5
5
| ^^^^^^^^^^^^^ expands to a recursive type
6
6
|
7
7
= note: type resolves to itself
Original file line number Diff line number Diff line change 4
4
#![ allow( incomplete_features) ]
5
5
6
6
pub fn run ( ) {
7
- let _foo: Box < impl Copy + ' _ > = Box :: new ( ( ) ) ;
7
+ let _foo: Box < impl Copy + ' _ > = Box :: new ( ( ) ) ; // FIXME: The error doesn't much make sense.
8
8
//~^ ERROR: opaque type expands to a recursive type
9
9
}
10
10
Original file line number Diff line number Diff line change 1
1
error[E0720]: opaque type expands to a recursive type
2
2
--> $DIR/issue-67166.rs:7:19
3
3
|
4
- LL | let _foo: Box<impl Copy + '_> = Box::new(());
4
+ LL | let _foo: Box<impl Copy + '_> = Box::new(()); // FIXME: The error doesn't much make sense.
5
5
| ^^^^^^^^^^^^^^ expands to a recursive type
6
6
|
7
7
= note: type resolves to itself
You can’t perform that action at this time.
0 commit comments