add uitests for cargo rust-version field

This commit is contained in:
Marcel Hellwig 2022-05-10 14:46:05 +02:00
parent 6384765665
commit f0a1cd5645
33 changed files with 278 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#![deny(clippy::use_self)]
pub struct Foo;
impl Foo {
pub fn bar() -> Foo {
Foo
}
}
fn main() {}

View file

@ -0,0 +1,14 @@
error: unnecessary structure name repetition
--> $DIR/main.rs:6:21
|
LL | pub fn bar() -> Foo {
| ^^^ help: use the applicable keyword: `Self`
|
note: the lint level is defined here
--> $DIR/main.rs:1:9
|
LL | #![deny(clippy::use_self)]
| ^^^^^^^^^^^^^^^^
error: aborting due to previous error