Skip to content

Commit

Permalink
Rename repeated trait bound test files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Hsu committed May 29, 2022
1 parent 6e2ec70 commit cc419e5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// run-rustfix
//
#![allow(unused)]
#![deny(clippy::repeated_where_clause_or_trait_bound)]
#![deny(clippy::repeated_where_clauses_or_trait_bounds)]

fn bad_foo<T: Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
unimplemented!();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// run-rustfix
//
#![allow(unused)]
#![deny(clippy::repeated_where_clause_or_trait_bound)]
#![deny(clippy::repeated_where_clauses_or_trait_bounds)]

fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
unimplemented!();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
error: these bounds contain repeated elements
--> $DIR/repeated_where_clause_or_trait_bound.rs:6:15
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:6:15
|
LL | fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
|
note: the lint level is defined here
--> $DIR/repeated_where_clause_or_trait_bound.rs:4:9
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:4:9
|
LL | #![deny(clippy::repeated_where_clause_or_trait_bound)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LL | #![deny(clippy::repeated_where_clauses_or_trait_bounds)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: these where clauses contain repeated elements
--> $DIR/repeated_where_clause_or_trait_bound.rs:12:8
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:12:8
|
LL | T: Clone + Clone + Clone + Copy,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`

error: these bounds contain repeated elements
--> $DIR/repeated_where_clause_or_trait_bound.rs:40:26
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:40:26
|
LL | trait BadSelfTraitBound: Clone + Clone + Clone {
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`

error: these where clauses contain repeated elements
--> $DIR/repeated_where_clause_or_trait_bound.rs:47:15
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:47:15
|
LL | Self: Clone + Clone + Clone;
| ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`

error: these bounds contain repeated elements
--> $DIR/repeated_where_clause_or_trait_bound.rs:61:24
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:61:24
|
LL | trait BadTraitBound<T: Clone + Clone + Clone + Copy, U: Clone + Copy> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`

error: these where clauses contain repeated elements
--> $DIR/repeated_where_clause_or_trait_bound.rs:68:12
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:68:12
|
LL | T: Clone + Clone + Clone + Copy,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`

error: these bounds contain repeated elements
--> $DIR/repeated_where_clause_or_trait_bound.rs:101:19
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:101:19
|
LL | fn bad_generic<T: GenericTrait<u64> + GenericTrait<u32> + GenericTrait<u64>>(arg0: T) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `GenericTrait<u32> + GenericTrait<u64>`

error: these bounds contain repeated elements
--> $DIR/repeated_where_clause_or_trait_bound.rs:109:22
--> $DIR/repeated_where_clauses_or_trait_bounds.rs:109:22
|
LL | fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + foo::Clone`
Expand Down

0 comments on commit cc419e5

Please sign in to comment.