Updates compiler error E0046 with new format
This commit is contained in:
parent
545a3a94fc
commit
ed72c65f72
6 changed files with 18 additions and 5 deletions
|
@ -19,6 +19,7 @@ pub struct FooConstForMethod;
|
|||
|
||||
impl Foo for FooConstForMethod {
|
||||
//~^ ERROR E0046
|
||||
//~| NOTE missing `bar` in implementation
|
||||
const bar: u64 = 1;
|
||||
//~^ ERROR E0323
|
||||
const MY_CONST: u32 = 1;
|
||||
|
@ -28,6 +29,7 @@ pub struct FooMethodForConst;
|
|||
|
||||
impl Foo for FooMethodForConst {
|
||||
//~^ ERROR E0046
|
||||
//~| NOTE missing `MY_CONST` in implementation
|
||||
fn bar(&self) {}
|
||||
fn MY_CONST() {}
|
||||
//~^ ERROR E0324
|
||||
|
@ -37,6 +39,7 @@ pub struct FooTypeForMethod;
|
|||
|
||||
impl Foo for FooTypeForMethod {
|
||||
//~^ ERROR E0046
|
||||
//~| NOTE missing `bar` in implementation
|
||||
type bar = u64;
|
||||
//~^ ERROR E0325
|
||||
const MY_CONST: u32 = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue