fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.0 KiB29 linesraw
1error[E0407]: method `method` is not a member of trait `Tr`
2  --> $DIR/assoc_item_ctxt.rs:35:13
3   |
4LL |             fn method() {}
5   |             ^^^^^^^^^^^^^^ not a member of trait `Tr`
6...
7LL |     mac_trait_impl!();
8   |     ------------------ in this macro invocation
9   |
10   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
11
12error[E0046]: not all trait items implemented, missing: `method`
13  --> $DIR/assoc_item_ctxt.rs:34:9
14   |
15LL |         fn method();
16   |         ------------ `method` from trait
17...
18LL |         impl Tr for u8 {
19   |         ^^^^^^^^^^^^^^ missing `method` in implementation
20...
21LL |     mac_trait_impl!();
22   |     ------------------ in this macro invocation
23   |
24   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
25
26error: aborting due to 2 previous errors
27
28Some errors have detailed explanations: E0046, E0407.
29For more information about an error, try `rustc --explain E0046`.