]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/trait-associated-constant.stderr
Auto merge of #105121 - oli-obk:simpler-cheaper-dump_mir, r=nnethercote
[rust.git] / src / test / ui / nll / trait-associated-constant.stderr
1 error[E0308]: const not compatible with trait
2   --> $DIR/trait-associated-constant.rs:21:5
3    |
4 LL |     const AC: Option<&'c str> = None;
5    |     ^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
6    |
7    = note: expected enum `Option<&'b str>`
8               found enum `Option<&'c str>`
9 note: the lifetime `'c` as defined here...
10   --> $DIR/trait-associated-constant.rs:20:18
11    |
12 LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct {
13    |                  ^^
14 note: ...does not necessarily outlive the lifetime `'b` as defined here
15   --> $DIR/trait-associated-constant.rs:20:14
16    |
17 LL | impl<'a: 'b, 'b, 'c> Anything<'a, 'b> for FailStruct {
18    |              ^^
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0308`.