fork/rust

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

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

master
623 B17 linesraw
1error[E0326]: implemented const `FROM` has an incompatible type for trait
2  --> $DIR/associated-const-generic-obligations.rs:14:17
3   |
4LL |     const FROM: &'static str = "foo";
5   |                 ^^^^^^^^^^^^ expected associated type, found `&'static str`
6   |
7note: type in trait
8  --> $DIR/associated-const-generic-obligations.rs:10:17
9   |
10LL |     const FROM: Self::Out;
11   |                 ^^^^^^^^^
12   = note: expected associated type `<T as Foo>::Out`
13                    found reference `&'static str`
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0326`.