Avoid silencing relevant follow-up errors
This commit is contained in:
parent
be00c5a9b8
commit
0978f6e010
184 changed files with 2700 additions and 631 deletions
|
@ -10,5 +10,15 @@ LL | impl const A for () {}
|
|||
= note: marking a trait with `#[const_trait]` ensures all default method bodies are `const`
|
||||
= note: adding a non-const method body in the future would be a breaking change
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
error[E0207]: the const parameter `host` is not constrained by the impl trait, self type, or predicates
|
||||
--> $DIR/const-impl-requires-const-trait.rs:8:6
|
||||
|
|
||||
LL | impl const A for () {}
|
||||
| ^^^^^ unconstrained const parameter
|
||||
|
|
||||
= note: expressions using a const parameter must map each value to a distinct output value
|
||||
= note: proving the result of expressions other than the parameter are unique is not supported
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
|
||||
For more information about this error, try `rustc --explain E0207`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue