E0379: Make diagnostic more precise
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user