granite-rust/tests/ui/traits/const-traits/specialization/const-default-bound-non-const-specialized-bound.stderr
2024-12-02 22:12:08 +00:00

31 lines
1,002 B
Text

error[E0119]: conflicting implementations of trait `Bar`
--> $DIR/const-default-bound-non-const-specialized-bound.rs:28:1
|
LL | / impl<T> const Bar for T
LL | | where
LL | | T: ~const Foo,
| |__________________- first implementation here
...
LL | / impl<T> Bar for T
LL | | where
LL | | T: Foo, //FIXME ~ ERROR missing `~const` qualifier
LL | | T: Specialize,
| |__________________^ conflicting implementation
error[E0119]: conflicting implementations of trait `Baz`
--> $DIR/const-default-bound-non-const-specialized-bound.rs:48:1
|
LL | / impl<T> const Baz for T
LL | | where
LL | | T: ~const Foo,
| |__________________- first implementation here
...
LL | / impl<T> const Baz for T //FIXME ~ ERROR conflicting implementations of trait `Baz`
LL | | where
LL | | T: Foo,
LL | | T: Specialize,
| |__________________^ conflicting implementation
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0119`.