File tree Expand file tree Collapse file tree 3 files changed +22
-0
lines changed
tests/ui-cargo/multiple_crate_versions/12145_with_dashes Expand file tree Collapse file tree 3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ error: multiple versions for dependency `winapi`: 0.2.8, 0.3.9
2
+ |
3
+ = note: `-D clippy::multiple-crate-versions` implied by `-D warnings`
4
+ = help: to override `-D warnings` add `#[allow(clippy::multiple_crate_versions)]`
5
+
6
+ error: could not compile `multiple-crate-versions-with-dashes` (bin "multiple-crate-versions-with-dashes") due to 1 previous error
Original file line number Diff line number Diff line change
1
+ # Should not lint for dev or build dependencies. See issue 5041.
2
+
3
+ [package ]
4
+ name = " multiple-crate-versions-with-dashes"
5
+ version = " 0.1.0"
6
+ publish = false
7
+
8
+ [workspace ]
9
+
10
+ # One of the versions of winapi is only a dev dependency: allowed
11
+ [dependencies ]
12
+ winapi = " 0.2"
13
+ ansi_term = " =0.11.0"
Original file line number Diff line number Diff line change
1
+ #![ warn( clippy:: multiple_crate_versions) ]
2
+
3
+ fn main ( ) { }
You can’t perform that action at this time.
0 commit comments