2023-07-16 18:18:38 +08:00
|
|
|
error: expected at least one confusable name
|
|
|
|
|
--> $DIR/rustc_confusables.rs:30:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[rustc_confusables()]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2025-03-05 14:35:54 +01:00
|
|
|
error[E0539]: malformed `rustc_confusables` attribute input
|
|
|
|
|
--> $DIR/rustc_confusables.rs:34:5
|
|
|
|
|
|
|
|
|
|
|
LL | #[rustc_confusables]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
2025-03-08 18:58:05 +01:00
|
|
|
| |
|
|
|
|
|
| expected this to be a list
|
|
|
|
|
| help: must be of the form: `#[rustc_confusables("name1", "name2", ...)]`
|
2025-03-05 14:35:54 +01:00
|
|
|
|
|
|
|
|
error[E0539]: malformed `rustc_confusables` attribute input
|
|
|
|
|
--> $DIR/rustc_confusables.rs:39:5
|
2023-07-16 18:18:38 +08:00
|
|
|
|
|
|
|
|
|
LL | #[rustc_confusables(invalid_meta_item)]
|
2025-03-08 18:58:05 +01:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^-----------------^^
|
|
|
|
|
| | |
|
|
|
|
|
| | expected a string literal here
|
|
|
|
|
| help: must be of the form: `#[rustc_confusables("name1", "name2", ...)]`
|
2023-07-16 18:18:38 +08:00
|
|
|
|
2025-02-09 22:50:01 +01:00
|
|
|
error: attribute should be applied to an inherent method
|
|
|
|
|
--> $DIR/rustc_confusables.rs:45:1
|
|
|
|
|
|
|
|
|
|
|
LL | #[rustc_confusables("blah")]
|
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2023-07-16 18:18:38 +08:00
|
|
|
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();
|
2024-02-10 03:37:08 +00:00
|
|
|
| ^^^^^
|
|
|
|
|
|
|
2024-02-14 18:23:01 +00:00
|
|
|
help: there is a method `insert` with a similar name
|
2024-02-10 03:37:08 +00:00
|
|
|
|
|
2025-02-13 02:54:07 +00:00
|
|
|
LL | x.insert();
|
2025-02-13 03:21:25 +00:00
|
|
|
| +
|
2023-07-16 18:18:38 +08:00
|
|
|
|
|
|
|
|
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();
|
2025-05-24 20:22:58 +02:00
|
|
|
| ^^^ method not found in `rustc_confusables_across_crate::BTreeSet`
|
2023-07-16 18:18:38 +08:00
|
|
|
|
|
|
|
|
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();
|
2025-05-24 20:22:58 +02:00
|
|
|
| ^^^^ method not found in `rustc_confusables_across_crate::BTreeSet`
|
2023-07-16 18:18:38 +08:00
|
|
|
|
|
|
|
|
|
help: you might have meant to use `insert`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - x.push();
|
|
|
|
|
LL + x.insert();
|
|
|
|
|
|
|
2023-07-16 18:18:38 +08:00
|
|
|
|
|
|
|
|
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();
|
2025-05-24 20:22:58 +02:00
|
|
|
| ^^^^ method not found in `rustc_confusables_across_crate::BTreeSet`
|
2023-07-16 18:18:38 +08:00
|
|
|
|
|
|
|
|
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();
|
2024-02-07 02:35:49 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
|
|
|
|
|
help: you might have meant to use `pull`
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - x.pulled();
|
|
|
|
|
LL + x.pull();
|
|
|
|
|
|
|
2023-07-16 18:18:38 +08:00
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|
|
|
|
|
|
Some errors have detailed explanations: E0539, E0599.
|
|
|
|
|
For more information about an error, try `rustc --explain E0539`.
|