diff options
Diffstat (limited to 'src/tools/clippy/tests/ui-cargo/cargo_rust_version/fail_file_attr/Cargo.stderr')
-rw-r--r-- | src/tools/clippy/tests/ui-cargo/cargo_rust_version/fail_file_attr/Cargo.stderr | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui-cargo/cargo_rust_version/fail_file_attr/Cargo.stderr b/src/tools/clippy/tests/ui-cargo/cargo_rust_version/fail_file_attr/Cargo.stderr new file mode 100644 index 000000000..14a6b5047 --- /dev/null +++ b/src/tools/clippy/tests/ui-cargo/cargo_rust_version/fail_file_attr/Cargo.stderr @@ -0,0 +1,19 @@ +error: unnecessary structure name repetition + --> src/main.rs:11:21 + | +11 | pub fn bar() -> Foo { + | ^^^ help: use the applicable keyword: `Self` + | +note: the lint level is defined here + --> src/main.rs:6:9 + | +6 | #![deny(clippy::use_self)] + | ^^^^^^^^^^^^^^^^ + +error: unnecessary structure name repetition + --> src/main.rs:12:9 + | +12 | Foo + | ^^^ help: use the applicable keyword: `Self` + +error: could not compile `fail-file-attr` (bin "fail-file-attr") due to 2 previous errors |