]> git.lizzy.rs Git - rust.git/blob - src/test/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr
Give method not found a primary span label
[rust.git] / src / test / ui / specialization / defaultimpl / specialization-trait-not-implemented.stderr
1 error[E0599]: no method named `foo_one` found for type `MyStruct` in the current scope
2   --> $DIR/specialization-trait-not-implemented.rs:22:29
3    |
4 LL | struct MyStruct;
5    | ---------------- method `foo_one` not found for this
6 ...
7 LL |     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
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0599`.