]> git.lizzy.rs Git - rust.git/blob - src/test/ui/specialization/specialization-polarity.stderr
Rollup merge of #98640 - cuviper:stable-rust-analyzer, r=Mark-Simulacrum
[rust.git] / src / test / ui / specialization / specialization-polarity.stderr
1 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2   --> $DIR/specialization-polarity.rs:5: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[E0751]: found both positive and negative implementation of trait `Foo` for type `u8`:
12   --> $DIR/specialization-polarity.rs:10:1
13    |
14 LL | impl<T> Foo for T {}
15    | ----------------- positive implementation here
16 LL | impl !Foo for u8 {}
17    | ^^^^^^^^^^^^^^^^ negative implementation here
18
19 error[E0751]: found both positive and negative implementation of trait `Bar` for type `u8`:
20   --> $DIR/specialization-polarity.rs:15:1
21    |
22 LL | impl<T> !Bar for T {}
23    | ------------------ negative implementation here
24 LL | impl Bar for u8 {}
25    | ^^^^^^^^^^^^^^^ positive implementation here
26
27 error: aborting due to 2 previous errors; 1 warning emitted
28
29 For more information about this error, try `rustc --explain E0751`.