fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes 2 --> $DIR/specialization-trait-not-implemented.rs:5:12 3 | 4LL | #![feature(specialization)] 5 | ^^^^^^^^^^^^^^ 6 | 7 = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information 8 = help: consider using `min_specialization` instead, which is more stable and complete 9 = note: `#[warn(incomplete_features)]` on by default 10 11error[E0599]: the method `foo_one` exists for struct `MyStruct`, but its trait bounds were not satisfied 12 --> $DIR/specialization-trait-not-implemented.rs:22:29 13 | 14LL | struct MyStruct; 15 | --------------- 16 | | 17 | method `foo_one` not found for this struct 18 | doesn't satisfy `MyStruct: Foo` 19... 20LL | println!("{}", MyStruct.foo_one()); 21 | ^^^^^^^ method cannot be called on `MyStruct` due to unsatisfied trait bounds 22 | 23note: trait bound `MyStruct: Foo` was not satisfied 24 --> $DIR/specialization-trait-not-implemented.rs:14:1 25 | 26LL | default impl<T> Foo for T { 27 | ^^^^^^^^^^^^^^^^---^^^^^- 28 | | 29 | unsatisfied trait bound introduced here 30note: the trait `Foo` must be implemented 31 --> $DIR/specialization-trait-not-implemented.rs:7:1 32 | 33LL | trait Foo { 34 | ^^^^^^^^^ 35 = help: items from traits can only be used if the trait is implemented and in scope 36note: `Foo` defines an item `foo_one`, perhaps you need to implement it 37 --> $DIR/specialization-trait-not-implemented.rs:7:1 38 | 39LL | trait Foo { 40 | ^^^^^^^^^ 41 42error: aborting due to previous error; 1 warning emitted 43 44For more information about this error, try `rustc --explain E0599`.