Skip to content

Commit 7af445d

Browse files
committed
bless some nll tests
1 parent 238d974 commit 7af445d

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

src/test/ui/type-alias-impl-trait/generic_type_does_not_live_long_enough.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ LL | type WrongGeneric<T> = impl 'static;
1919
found opaque type `impl Sized`
2020

2121
error[E0310]: the parameter type `T` may not live long enough
22-
--> $DIR/generic_type_does_not_live_long_enough.rs:13:30
22+
--> $DIR/generic_type_does_not_live_long_enough.rs:12:30
2323
|
2424
LL | fn wrong_generic<T>(t: T) -> WrongGeneric<T> {
2525
| ^^^^^^^^^^^^^^^

src/test/ui/type-alias-impl-trait/issue-57611-trait-alias.nll.stderr

+1-25
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,5 @@ error: higher-ranked subtype error
1010
LL | |x| x
1111
| ^^^^^
1212

13-
error[E0308]: mismatched types
14-
--> $DIR/issue-57611-trait-alias.rs:17:16
15-
|
16-
LL | type Bar = impl Baz<Self, Self>;
17-
| ^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
18-
|
19-
= note: expected type `for<'r> Fn<(&'r X,)>`
20-
found type `Fn<(&'static X,)>`
21-
note: this closure does not fulfill the lifetime requirements
22-
--> $DIR/issue-57611-trait-alias.rs:21:9
23-
|
24-
LL | |x| x
25-
| ^^^^^
26-
27-
error: implementation of `FnOnce` is not general enough
28-
--> $DIR/issue-57611-trait-alias.rs:17:16
29-
|
30-
LL | type Bar = impl Baz<Self, Self>;
31-
| ^^^^^^^^^^^^^^^^^^^^ implementation of `FnOnce` is not general enough
32-
|
33-
= note: closure with signature `fn(&'static X) -> &'static X` must implement `FnOnce<(&'0 X,)>`, for any lifetime `'0`...
34-
= note: ...but it actually implements `FnOnce<(&'static X,)>`
35-
36-
error: aborting due to 4 previous errors
13+
error: aborting due to 2 previous errors
3714

38-
For more information about this error, try `rustc --explain E0308`.

0 commit comments

Comments
 (0)