File: rustc_confusables.stderr

package info (click to toggle)
rustc 1.85.0%2Bdfsg3-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, sid, trixie
  • size: 893,396 kB
  • sloc: xml: 158,127; python: 35,830; javascript: 19,497; cpp: 19,002; sh: 17,245; ansic: 13,127; asm: 4,376; makefile: 1,051; perl: 29; lisp: 29; ruby: 19; sql: 11
file content (78 lines) | stat: -rw-r--r-- 2,411 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
error: malformed `rustc_confusables` attribute input
  --> $DIR/rustc_confusables.rs:34:5
   |
LL |     #[rustc_confusables]
   |     ^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_confusables("name1", "name2", ...)]`

error: attribute should be applied to an inherent method
  --> $DIR/rustc_confusables.rs:45:1
   |
LL | #[rustc_confusables("blah")]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: expected at least one confusable name
  --> $DIR/rustc_confusables.rs:30:5
   |
LL |     #[rustc_confusables()]
   |     ^^^^^^^^^^^^^^^^^^^^^^

error[E0539]: expected a quoted string literal
  --> $DIR/rustc_confusables.rs:39:25
   |
LL |     #[rustc_confusables(invalid_meta_item)]
   |                         ^^^^^^^^^^^^^^^^^
   |
help: consider surrounding this with quotes
   |
LL |     #[rustc_confusables("invalid_meta_item")]
   |                         +                 +

error[E0599]: no method named `inser` found for struct `rustc_confusables_across_crate::BTreeSet` in the current scope
  --> $DIR/rustc_confusables.rs:12:7
   |
LL |     x.inser();
   |       ^^^^^
   |
help: there is a method `insert` with a similar name
   |
LL |     x.insert();
   |       ~~~~~~

error[E0599]: no method named `foo` found for struct `rustc_confusables_across_crate::BTreeSet` in the current scope
  --> $DIR/rustc_confusables.rs:15:7
   |
LL |     x.foo();
   |       ^^^ method not found in `BTreeSet`

error[E0599]: no method named `push` found for struct `rustc_confusables_across_crate::BTreeSet` in the current scope
  --> $DIR/rustc_confusables.rs:17:7
   |
LL |     x.push();
   |       ^^^^ method not found in `BTreeSet`
   |
help: you might have meant to use `insert`
   |
LL |     x.insert();
   |       ~~~~~~

error[E0599]: no method named `test` found for struct `rustc_confusables_across_crate::BTreeSet` in the current scope
  --> $DIR/rustc_confusables.rs:20:7
   |
LL |     x.test();
   |       ^^^^ method not found in `BTreeSet`

error[E0599]: no method named `pulled` found for struct `rustc_confusables_across_crate::BTreeSet` in the current scope
  --> $DIR/rustc_confusables.rs:22:7
   |
LL |     x.pulled();
   |       ^^^^^^
   |
help: you might have meant to use `pull`
   |
LL |     x.pull();
   |       ~~~~

error: aborting due to 9 previous errors

Some errors have detailed explanations: E0539, E0599.
For more information about an error, try `rustc --explain E0539`.