fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
2.3 KiB68 linesraw
1error: malformed `rustc_confusables` attribute input
2  --> $DIR/rustc_confusables.rs:34:5
3   |
4LL |     #[rustc_confusables]
5   |     ^^^^^^^^^^^^^^^^^^^^ help: must be of the form: `#[rustc_confusables("name1", "name2", ...)]`
6
7error: attribute should be applied to an inherent method
8  --> $DIR/rustc_confusables.rs:45:1
9   |
10LL | #[rustc_confusables("blah")]
11   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13error: expected at least one confusable name
14  --> $DIR/rustc_confusables.rs:30:5
15   |
16LL |     #[rustc_confusables()]
17   |     ^^^^^^^^^^^^^^^^^^^^^^
18
19error[E0539]: expected a quoted string literal
20  --> $DIR/rustc_confusables.rs:39:25
21   |
22LL |     #[rustc_confusables(invalid_meta_item)]
23   |                         ^^^^^^^^^^^^^^^^^
24   |
25help: consider surrounding this with quotes
26   |
27LL |     #[rustc_confusables("invalid_meta_item")]
28   |                         +                 +
29
30error[E0599]: no method named `inser` found for struct `rustc_confusables_across_crate::BTreeSet` in the current scope
31  --> $DIR/rustc_confusables.rs:12:7
32   |
33LL |     x.inser();
34   |       ^^^^^ help: there is a method with a similar name: `insert`
35
36error[E0599]: no method named `foo` found for struct `rustc_confusables_across_crate::BTreeSet` in the current scope
37  --> $DIR/rustc_confusables.rs:15:7
38   |
39LL |     x.foo();
40   |       ^^^ method not found in `BTreeSet`
41
42error[E0599]: no method named `push` found for struct `rustc_confusables_across_crate::BTreeSet` in the current scope
43  --> $DIR/rustc_confusables.rs:17:7
44   |
45LL |     x.push();
46   |       ^^^^ method not found in `BTreeSet`
47   |
48help: you might have meant to use `insert`
49   |
50LL |     x.insert();
51   |       ~~~~~~
52
53error[E0599]: no method named `test` found for struct `rustc_confusables_across_crate::BTreeSet` in the current scope
54  --> $DIR/rustc_confusables.rs:20:7
55   |
56LL |     x.test();
57   |       ^^^^ method not found in `BTreeSet`
58
59error[E0599]: no method named `pulled` found for struct `rustc_confusables_across_crate::BTreeSet` in the current scope
60  --> $DIR/rustc_confusables.rs:22:7
61   |
62LL |     x.pulled();
63   |       ^^^^^^ help: there is a method with a similar name: `pull`
64
65error: aborting due to 9 previous errors
66
67Some errors have detailed explanations: E0539, E0599.
68For more information about an error, try `rustc --explain E0539`.