]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/issue-57611-trait-alias.nll.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / issue-57611-trait-alias.nll.stderr
1 error: higher-ranked subtype error
2 --> $DIR/issue-57611-trait-alias.rs:25:9
3 |
4 LL | |x| x
5 | ^^^^^
6
7 error: higher-ranked subtype error
8 --> $DIR/issue-57611-trait-alias.rs:25:9
9 |
10 LL | |x| x
11 | ^^^^^
12
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:25:9
23 |
24 LL | |x| x
25 | ^^^^^
26
27 error[E0308]: mismatched types
28 --> $DIR/issue-57611-trait-alias.rs:17:16
29 |
30 LL | type Bar = impl Baz<Self, Self>;
31 | ^^^^^^^^^^^^^^^^^^^^ one type is more general than the other
32 |
33 = note: expected type `FnOnce<(&X,)>`
34 found type `FnOnce<(&'static X,)>`
35 note: this closure does not fulfill the lifetime requirements
36 --> $DIR/issue-57611-trait-alias.rs:25:9
37 |
38 LL | |x| x
39 | ^^^^^
40
41 error: aborting due to 4 previous errors
42
43 For more information about this error, try `rustc --explain E0308`.