fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0326]: implemented const `FROM` has an incompatible type for trait 2 --> $DIR/associated-const-generic-obligations.rs:14:17 3 | 4LL | const FROM: Self::Out; 5 | --------- type in trait 6... 7LL | const FROM: &'static str = "foo"; 8 | ^^^^^^^^^^^^ expected associated type, found reference 9 | 10 = note: expected type `<T as Foo>::Out` 11 found type `&'static str` 12 = note: consider constraining the associated type `<T as Foo>::Out` to `&'static str` or calling a method that returns `<T as Foo>::Out` 13 = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0326`.