fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: ~const can only be applied to `#[const_trait]` traits 2 --> $DIR/const_trait_impl.rs:34:16 3 | 4LL | impl<T: ~const Default> const A for T { 5 | ^^^^^^^ 6 7error: ~const can only be applied to `#[const_trait]` traits 8 --> $DIR/const_trait_impl.rs:40:16 9 | 10LL | impl<T: ~const Default + ~const Sup> const A for T { 11 | ^^^^^^^ 12 13error: ~const can only be applied to `#[const_trait]` traits 14 --> $DIR/const_trait_impl.rs:46:16 15 | 16LL | impl<T: ~const Default + ~const Sub> const A for T { 17 | ^^^^^^^ 18 19error: aborting due to 3 previous errors 20