]> git.lizzy.rs Git - rust.git/blob - src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented.stderr
warn against 'specialization' feature
[rust.git] / src / test / ui / specialization / defaultimpl / specialization-trait-item-not-implemented.stderr
1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/specialization-trait-item-not-implemented.rs:3:12
3    |
4 LL | #![feature(specialization)]
5    |            ^^^^^^^^^^^^^^
6    |
7    = note: `#[warn(incomplete_features)]` on by default
8    = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
9
10 error[E0046]: not all trait items implemented, missing: `foo_two`
11   --> $DIR/specialization-trait-item-not-implemented.rs:18:1
12    |
13 LL |     fn foo_two(&self) -> &'static str;
14    |     ---------------------------------- `foo_two` from trait
15 ...
16 LL | impl Foo for MyStruct {}
17    | ^^^^^^^^^^^^^^^^^^^^^ missing `foo_two` in implementation
18
19 error: aborting due to previous error; 1 warning emitted
20
21 For more information about this error, try `rustc --explain E0046`.