2024-01-17 08:57:48 -06:00
|
|
|
error[E0119]: conflicting implementations of trait `Copy` for type `S<_>`
|
2024-02-09 06:17:55 -06:00
|
|
|
--> $DIR/bad-const-wf-doesnt-specialize.rs:10:1
|
2024-01-17 08:57:48 -06:00
|
|
|
|
|
|
|
|
LL | impl<const N: i32> Copy for S<N> {}
|
|
|
|
| -------------------------------- first implementation here
|
2024-02-09 06:17:55 -06:00
|
|
|
LL |
|
2024-01-17 08:57:48 -06:00
|
|
|
LL | impl<const M: usize> Copy for S<M> {}
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ conflicting implementation for `S<_>`
|
|
|
|
|
2024-02-09 06:17:55 -06:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/bad-const-wf-doesnt-specialize.rs:8:31
|
|
|
|
|
|
|
|
|
LL | impl<const N: i32> Copy for S<N> {}
|
|
|
|
| ^ expected `usize`, found `i32`
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2023-03-09 14:49:05 -06:00
|
|
|
|
2024-02-09 06:17:55 -06:00
|
|
|
Some errors have detailed explanations: E0119, E0308.
|
|
|
|
For more information about an error, try `rustc --explain E0119`.
|