]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-trait-items.stderr
Rollup merge of #105784 - yanns:update_stdarch, r=Amanieu
[rust.git] / tests / ui / suggestions / suggest-trait-items.stderr
1 error[E0437]: type `Typ` is not a member of trait `Foo`
2   --> $DIR/suggest-trait-items.rs:13:5
3    |
4 LL |     type Typ = ();
5    |     ^^^^^---^^^^^^
6    |     |    |
7    |     |    help: there is an associated type with a similar name: `Type`
8    |     not a member of trait `Foo`
9
10 error[E0407]: method `fooo` is not a member of trait `Foo`
11   --> $DIR/suggest-trait-items.rs:17:5
12    |
13 LL |     fn fooo() {}
14    |     ^^^----^^^^^
15    |     |  |
16    |     |  help: there is an associated function with a similar name: `foo`
17    |     not a member of trait `Foo`
18
19 error[E0407]: method `barr` is not a member of trait `Foo`
20   --> $DIR/suggest-trait-items.rs:21:5
21    |
22 LL |     fn barr() {}
23    |     ^^^----^^^^^
24    |     |  |
25    |     |  help: there is an associated function with a similar name: `bar`
26    |     not a member of trait `Foo`
27
28 error[E0407]: method `quux` is not a member of trait `Foo`
29   --> $DIR/suggest-trait-items.rs:25:5
30    |
31 LL |     fn quux() {}
32    |     ^^^----^^^^^
33    |     |  |
34    |     |  help: there is an associated function with a similar name: `qux`
35    |     not a member of trait `Foo`
36
37 error[E0438]: const `Cnst` is not a member of trait `Bar`
38   --> $DIR/suggest-trait-items.rs:42:5
39    |
40 LL |     const Cnst: i32 = 0;
41    |     ^^^^^^----^^^^^^^^^^
42    |     |     |
43    |     |     help: there is an associated constant with a similar name: `Const`
44    |     not a member of trait `Bar`
45
46 error[E0046]: not all trait items implemented, missing: `Type`, `foo`, `bar`, `qux`
47   --> $DIR/suggest-trait-items.rs:11:1
48    |
49 LL |     type Type;
50    |     --------- `Type` from trait
51 LL |
52 LL |     fn foo();
53    |     --------- `foo` from trait
54 LL |     fn bar();
55    |     --------- `bar` from trait
56 LL |     fn qux();
57    |     --------- `qux` from trait
58 ...
59 LL | impl Foo for A {
60    | ^^^^^^^^^^^^^^ missing `Type`, `foo`, `bar`, `qux` in implementation
61
62 error[E0046]: not all trait items implemented, missing: `Const`
63   --> $DIR/suggest-trait-items.rs:40:1
64    |
65 LL |     const Const: i32;
66    |     ---------------- `Const` from trait
67 ...
68 LL | impl Bar for B {
69    | ^^^^^^^^^^^^^^ missing `Const` in implementation
70
71 error: aborting due to 7 previous errors
72
73 Some errors have detailed explanations: E0046, E0407, E0437, E0438.
74 For more information about an error, try `rustc --explain E0046`.