fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
791 B18 linesraw
1error[E0599]: no method named `foo_one` found for type `MyStruct` in the current scope
2  --> $DIR/specialization-trait-not-implemented.rs:22:29
3   |
4LL | struct MyStruct;
5   | ---------------- method `foo_one` not found for this
6...
7LL |     println!("{}", MyStruct.foo_one());
8   |                             ^^^^^^^ method not found in `MyStruct`
9   |
10   = note: the method `foo_one` exists but the following trait bounds were not satisfied:
11           `MyStruct : Foo`
12   = help: items from traits can only be used if the trait is implemented and in scope
13   = note: the following trait defines an item `foo_one`, perhaps you need to implement it:
14           candidate #1: `Foo`
15
16error: aborting due to previous error
17
18For more information about this error, try `rustc --explain E0599`.