]> git.proxmox.com Git - rustc.git/blob - src/test/ui/nll/trait-associated-constant.stderr
New upstream version 1.66.0+dfsg1
[rustc.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`.