E0379: Make diagnostic more precise
This commit is contained in:
parent
8f546aa495
commit
ae8e401c9f
13 changed files with 31 additions and 20 deletions
|
@ -6,6 +6,10 @@ Erroneous code example:
|
|||
trait Foo {
|
||||
const fn bar() -> u32; // error!
|
||||
}
|
||||
|
||||
impl Foo for () {
|
||||
const fn bar() -> u32 { 0 } // error!
|
||||
}
|
||||
```
|
||||
|
||||
Trait methods cannot be declared `const` by design. For more information, see
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue