rust/tests/ui/specialization/specialization-overlap-projection.next.stderr

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

31 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-04-30 15:02:55 -05:00
warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
2024-09-21 02:02:51 -05:00
--> $DIR/specialization-overlap-projection.rs:4:12
2024-04-30 15:02:55 -05:00
|
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
= note: `#[warn(incomplete_features)]` on by default
error[E0119]: conflicting implementations of trait `Foo` for type `u32`
2024-09-21 02:02:51 -05:00
--> $DIR/specialization-overlap-projection.rs:19:1
2024-04-30 15:02:55 -05:00
|
LL | impl Foo for u32 {}
| ---------------- first implementation here
LL | impl Foo for <u8 as Assoc>::Output {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `u32`
error[E0119]: conflicting implementations of trait `Foo` for type `u32`
2024-09-21 02:02:51 -05:00
--> $DIR/specialization-overlap-projection.rs:21:1
2024-04-30 15:02:55 -05:00
|
LL | impl Foo for u32 {}
| ---------------- first implementation here
...
LL | impl Foo for <u16 as Assoc>::Output {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `u32`
error: aborting due to 2 previous errors; 1 warning emitted
2024-04-30 15:02:55 -05:00
For more information about this error, try `rustc --explain E0119`.