diff options
Diffstat (limited to '')
-rw-r--r-- | src/tools/clippy/tests/ui-cargo/cargo_rust_version/pass_cargo/Cargo.toml | 9 | ||||
-rw-r--r-- | src/tools/clippy/tests/ui-cargo/cargo_rust_version/pass_cargo/src/main.rs | 11 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui-cargo/cargo_rust_version/pass_cargo/Cargo.toml b/src/tools/clippy/tests/ui-cargo/cargo_rust_version/pass_cargo/Cargo.toml new file mode 100644 index 000000000..32d404f84 --- /dev/null +++ b/src/tools/clippy/tests/ui-cargo/cargo_rust_version/pass_cargo/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "pass-cargo" +version = "0.1.0" +rust-version = "1.13.0" +publish = false + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/src/tools/clippy/tests/ui-cargo/cargo_rust_version/pass_cargo/src/main.rs b/src/tools/clippy/tests/ui-cargo/cargo_rust_version/pass_cargo/src/main.rs new file mode 100644 index 000000000..5b91d5508 --- /dev/null +++ b/src/tools/clippy/tests/ui-cargo/cargo_rust_version/pass_cargo/src/main.rs @@ -0,0 +1,11 @@ +#![deny(clippy::use_self)] + +pub struct Foo; + +impl Foo { + pub fn bar() -> Foo { + Foo + } +} + +fn main() {} |