about summary refs log tree commit diff
path: root/tests/ui/traits/const-traits/specialization/const-default-bound-non-const-specialized-bound.stderr
blob: 074e6237cc20d99bd2ba3388bc13a0260f23cf16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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`.