add uitests for cargo rust-version field
This commit is contained in:
parent
6384765665
commit
f0a1cd5645
33 changed files with 278 additions and 0 deletions
11
tests/ui-cargo/cargo_rust_version/warn_both_diff/src/main.rs
Normal file
11
tests/ui-cargo/cargo_rust_version/warn_both_diff/src/main.rs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#![deny(clippy::use_self)]
|
||||
|
||||
pub struct Foo;
|
||||
|
||||
impl Foo {
|
||||
pub fn bar() -> Foo {
|
||||
Foo
|
||||
}
|
||||
}
|
||||
|
||||
fn main() {}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
warning: the MSRV in `clippy.toml` and `Cargo.toml` differ; using `1.13.0` from `clippy.toml`
|
||||
|
||||
warning: 1 warning emitted
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue