You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// https://doc.rust-lang.org/error_codes/E0046.htmltraitFoo{fnfoo();}structBar;implFooforBar{}// error: not all trait items implemented, missing: `foo`
This happened:
Location info was not clear.
➜ gccrs-build gcc/crab1 -frust-incomplete-and-experimental-compiler-do-not-use ../mahad-testsuite/E0046.rs
../mahad-testsuite/E0046.rs:9:1: error: missing foo in implementation of trait ‘Foo’ [E0046]
4 | fn foo();
+ | ~~- | --------- `foo` from trait
......
9 | impl Foo for Bar {}
+ | ^~~~- | ^^^^^^^^^^^^^^^^ missing `foo` in implementation
I expected to see this happen:
Location info similiar to rustc-1.49.
This is the output of rust-1.49:
➜ gccrs-build rustc ../mahad-testsuite/E0046.rs
error[E0046]: not all trait items implemented, missing: `foo`
--> ../mahad-testsuite/E0046.rs:9:1
|
4 | fn foo();
| --------- `foo` from trait
...
9 | impl FooforBar{}
| ^^^^^^^^^^^^^^^^ missing `foo` in implementation
error: aborting due to previous error
For more information about this error, try `rustc --explain E0046`.
Meta
What version of Rust GCC were you using, git sha 562a782.
The text was updated successfully, but these errors were encountered:
Location Info error for "missing function in trait implementation"
I tried this code from
E0046
:compiler-explorer
rust/compile/traits4.rs
rust/compile/traits5.rs
This happened:
I expected to see this happen:
Meta
The text was updated successfully, but these errors were encountered: