rust/tests/ui/specialization/defaultimpl/specialization-trait-not-implemented.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
1.2 KiB
Plaintext
Raw Normal View History

2020-05-17 08:22:48 +00:00
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
--> $DIR/specialization-trait-not-implemented.rs:5:12
|
LL | #![feature(specialization)]
| ^^^^^^^^^^^^^^
|
= note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
= help: consider using `min_specialization` instead, which is more stable and complete
2022-09-18 15:55:36 +00:00
= note: `#[warn(incomplete_features)]` on by default
2020-05-17 08:22:48 +00:00
error[E0599]: no method named `foo_one` found for struct `MyStruct` in the current scope
2018-12-25 15:56:47 +00:00
--> $DIR/specialization-trait-not-implemented.rs:22:29
2018-08-08 12:28:26 +00:00
|
LL | struct MyStruct;
| --------------- method `foo_one` not found for this struct
2018-08-08 12:28:26 +00:00
...
LL | println!("{}", MyStruct.foo_one());
| ^^^^^^^ method not found in `MyStruct`
2018-08-08 12:28:26 +00:00
|
= help: items from traits can only be used if the trait is implemented and in scope
2020-02-25 02:55:51 +00:00
note: `Foo` defines an item `foo_one`, perhaps you need to implement it
--> $DIR/specialization-trait-not-implemented.rs:7:1
|
LL | trait Foo {
| ^^^^^^^^^
2018-08-08 12:28:26 +00:00
error: aborting due to 1 previous error; 1 warning emitted
2018-08-08 12:28:26 +00:00
For more information about this error, try `rustc --explain E0599`.