fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
600 B18 linesraw
1error[E0308]: const not compatible with trait
2  --> $DIR/associated-const-impl-wrong-lifetime.rs:7:5
3   |
4LL |     const NAME: &'a str = "unit";
5   |     ^^^^^^^^^^^^^^^^^^^ lifetime mismatch
6   |
7   = note: expected reference `&'static str`
8              found reference `&'a str`
9note: the lifetime `'a` as defined here...
10  --> $DIR/associated-const-impl-wrong-lifetime.rs:6:6
11   |
12LL | impl<'a> Foo for &'a () {
13   |      ^^
14   = note: ...does not necessarily outlive the static lifetime
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0308`.