]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-97997.stderr
Auto merge of #105121 - oli-obk:simpler-cheaper-dump_mir, r=nnethercote
[rust.git] / src / test / ui / nll / issue-97997.stderr
1 error: implementation of `Foo` is not general enough
2   --> $DIR/issue-97997.rs:13:5
3    |
4 LL |     <fn(&u8) as Foo>::ASSOC;
5    |     ^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
6    |
7    = note: `Foo` would have to be implemented for the type `for<'a> fn(&'a u8)`
8    = note: ...but `Foo` is actually implemented for the type `fn(&'0 u8)`, for some specific lifetime `'0`
9
10 error: implementation of `Foo` is not general enough
11   --> $DIR/issue-97997.rs:13:5
12    |
13 LL |     <fn(&u8) as Foo>::ASSOC;
14    |     ^^^^^^^^^^^^^^^^^^^^^^^ implementation of `Foo` is not general enough
15    |
16    = note: `Foo` would have to be implemented for the type `for<'a> fn(&'a u8)`
17    = note: ...but `Foo` is actually implemented for the type `fn(&'0 u8)`, for some specific lifetime `'0`
18
19 error: aborting due to 2 previous errors
20