]> git.proxmox.com Git - rustc.git/blame - src/test/ui/specialization/defaultimpl/specialization-trait-item-not-implemented.stderr
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / specialization / defaultimpl / specialization-trait-item-not-implemented.stderr
CommitLineData
f035d41b
XL
1warning: 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 |
4LL | #![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
29967ef6 9 = help: consider using `min_specialization` instead, which is more stable and complete
f035d41b 10
b7449926 11error[E0046]: not all trait items implemented, missing: `foo_two`
0731742a 12 --> $DIR/specialization-trait-item-not-implemented.rs:18:1
b7449926
XL
13 |
14LL | fn foo_two(&self) -> &'static str;
15 | ---------------------------------- `foo_two` from trait
16...
17LL | impl Foo for MyStruct {}
18 | ^^^^^^^^^^^^^^^^^^^^^ missing `foo_two` in implementation
19
f035d41b 20error: aborting due to previous error; 1 warning emitted
b7449926
XL
21
22For more information about this error, try `rustc --explain E0046`.