fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: const `impl` for trait `Drop` which is not marked with `#[const_trait]` 2 --> $DIR/const-drop-fail-2.rs:23:25 3 | 4LL | impl<T: ~const A> const Drop for ConstDropImplWithBounds<T> { 5 | ^^^^ 6 | 7 = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` 8 = note: adding a non-const method body in the future would be a breaking change 9 10error: ~const can only be applied to `#[const_trait]` traits 11 --> $DIR/const-drop-fail-2.rs:29:26 12 | 13LL | const fn check<T: ~const Destruct>(_: T) {} 14 | ^^^^^^^^ 15 16error: const `impl` for trait `Drop` which is not marked with `#[const_trait]` 17 --> $DIR/const-drop-fail-2.rs:39:25 18 | 19LL | impl<T: ~const A> const Drop for ConstDropImplWithNonConstBounds<T> { 20 | ^^^^ 21 | 22 = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const` 23 = note: adding a non-const method body in the future would be a breaking change 24 25error: aborting due to 3 previous errors 26