fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: const `impl` for trait `Default` which is not marked with `#[const_trait]` 2 --> $DIR/rustc-impl-const-stability.rs:15:12 3 | 4LL | impl const Default for Data { 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[E0207]: the const parameter `host` is not constrained by the impl trait, self type, or predicates 11 --> $DIR/rustc-impl-const-stability.rs:15:6 12 | 13LL | impl const Default for Data { 14 | ^^^^^ unconstrained const parameter 15 | 16 = note: expressions using a const parameter must map each value to a distinct output value 17 = note: proving the result of expressions other than the parameter are unique is not supported 18 19error: aborting due to 2 previous errors 20 21For more information about this error, try `rustc --explain E0207`.