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 11// Regression test for #57200
2+ // FIXME: The error is temporary hack, we'll revisit here at some point.
23
34#![ feature( impl_trait_in_bindings) ]
45#![ allow( incomplete_features) ]
Original file line number Diff line number Diff line change 11error: 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
33 |
44LL | let f: impl Fn(&'a T) -> &'b T = |x| x;
55 | ^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change 11// Regression test for #57201
2+ // FIXME: The error is temporary hack, we'll revisit here at some point.
23
34#![ feature( impl_trait_in_bindings) ]
45#![ allow( incomplete_features) ]
Original file line number Diff line number Diff line change 11error: 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
33 |
44LL | let f: &impl Fn(&'a T) -> &'b T = &|x| x;
55 | ^^^^^^^^^^^^^^^^^^^^^^^
Original file line number Diff line number Diff line change @@ -12,5 +12,6 @@ impl<T> Trait<T> for () {
1212}
1313
1414fn 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
1617}
Original file line number Diff line number Diff line change 11error[E0720]: opaque type expands to a recursive type
22 --> $DIR/issue-60473.rs:15:12
33 |
4- LL | let x: impl Trait<A> = ();
4+ LL | let x: impl Trait<A> = (); // FIXME: The error doesn't seem correct.
55 | ^^^^^^^^^^^^^ expands to a recursive type
66 |
77 = note: type resolves to itself
Original file line number Diff line number Diff line change 44#![ allow( incomplete_features) ]
55
66pub 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.
88 //~^ ERROR: opaque type expands to a recursive type
99}
1010
Original file line number Diff line number Diff line change 11error[E0720]: opaque type expands to a recursive type
22 --> $DIR/issue-67166.rs:7:19
33 |
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.
55 | ^^^^^^^^^^^^^^ expands to a recursive type
66 |
77 = note: type resolves to itself
You can’t perform that action at this time.
0 commit comments