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