mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 18:27:37 +00:00

These tests specifically test 2015 edition behavior, so ensure that they can only be run with this edition
92 lines
2.4 KiB
Plaintext
92 lines
2.4 KiB
Plaintext
error: unnecessary qualification
|
|
--> $DIR/lint-qualification.rs:13:5
|
|
|
|
|
LL | foo::bar();
|
|
| ^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-qualification.rs:3:9
|
|
|
|
|
LL | #![deny(unused_qualifications)]
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
help: remove the unnecessary path segments
|
|
|
|
|
LL - foo::bar();
|
|
LL + bar();
|
|
|
|
|
|
|
error: unnecessary qualification
|
|
--> $DIR/lint-qualification.rs:14:5
|
|
|
|
|
LL | crate::foo::bar();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
help: remove the unnecessary path segments
|
|
|
|
|
LL - crate::foo::bar();
|
|
LL + bar();
|
|
|
|
|
|
|
error: unnecessary qualification
|
|
--> $DIR/lint-qualification.rs:19:13
|
|
|
|
|
LL | let _ = std::string::String::new();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: remove the unnecessary path segments
|
|
|
|
|
LL - let _ = std::string::String::new();
|
|
LL + let _ = String::new();
|
|
|
|
|
|
|
error: unnecessary qualification
|
|
--> $DIR/lint-qualification.rs:21:12
|
|
|
|
|
LL | let _: std::vec::Vec<String> = std::vec::Vec::<String>::new();
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: remove the unnecessary path segments
|
|
|
|
|
LL - let _: std::vec::Vec<String> = std::vec::Vec::<String>::new();
|
|
LL + let _: Vec<String> = std::vec::Vec::<String>::new();
|
|
|
|
|
|
|
error: unnecessary qualification
|
|
--> $DIR/lint-qualification.rs:21:36
|
|
|
|
|
LL | let _: std::vec::Vec<String> = std::vec::Vec::<String>::new();
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: remove the unnecessary path segments
|
|
|
|
|
LL - let _: std::vec::Vec<String> = std::vec::Vec::<String>::new();
|
|
LL + let _: std::vec::Vec<String> = Vec::<String>::new();
|
|
|
|
|
|
|
error: unused import: `std::fmt`
|
|
--> $DIR/lint-qualification.rs:25:9
|
|
|
|
|
LL | use std::fmt;
|
|
| ^^^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/lint-qualification.rs:4:9
|
|
|
|
|
LL | #![deny(unused_imports)]
|
|
| ^^^^^^^^^^^^^^
|
|
|
|
error: unnecessary qualification
|
|
--> $DIR/lint-qualification.rs:30:13
|
|
|
|
|
LL | let _ = <bool as std::default::Default>::default(); // issue #121999 (modified)
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
help: remove the unnecessary path segments
|
|
|
|
|
LL - let _ = <bool as std::default::Default>::default(); // issue #121999 (modified)
|
|
LL + let _ = <bool as Default>::default(); // issue #121999 (modified)
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|