]> git.proxmox.com Git - rustc.git/blob - src/test/ui/specialization/issue-50452-fail.stderr
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / specialization / issue-50452-fail.stderr
1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/issue-50452-fail.rs:1: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 = help: consider using `min_specialization` instead, which is more stable and complete
10
11 error[E0520]: `foo` specializes an item from a parent `impl`, but that item is not marked `default`
12 --> $DIR/issue-50452-fail.rs:10:5
13 |
14 LL | fn foo() {}
15 | ^^^^^^^^^^^ cannot specialize default item `foo`
16 ...
17 LL | / impl<T> Foo for T {
18 LL | | fn foo() {}
19 LL | | }
20 | |_- parent `impl` is here
21 |
22 = note: to specialize, `foo` in the parent `impl` must be marked `default`
23
24 error: aborting due to previous error; 1 warning emitted
25
26 For more information about this error, try `rustc --explain E0520`.