]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/trait_duplication_in_bounds.stderr
make const_err a hard error
[rust.git] / src / tools / clippy / tests / ui / trait_duplication_in_bounds.stderr
1 error: these bounds contain repeated elements
2   --> $DIR/trait_duplication_in_bounds.rs:5:15
3    |
4 LL | fn bad_foo<T: Clone + Clone + Clone + Copy, U: Clone + Copy>(arg0: T, argo1: U) {
5    |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
6    |
7 note: the lint level is defined here
8   --> $DIR/trait_duplication_in_bounds.rs:2:9
9    |
10 LL | #![deny(clippy::trait_duplication_in_bounds)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12
13 error: these where clauses contain repeated elements
14   --> $DIR/trait_duplication_in_bounds.rs:11:8
15    |
16 LL |     T: Clone + Clone + Clone + Copy,
17    |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
18
19 error: these bounds contain repeated elements
20   --> $DIR/trait_duplication_in_bounds.rs:39:26
21    |
22 LL | trait BadSelfTraitBound: Clone + Clone + Clone {
23    |                          ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`
24
25 error: these where clauses contain repeated elements
26   --> $DIR/trait_duplication_in_bounds.rs:46:15
27    |
28 LL |         Self: Clone + Clone + Clone;
29    |               ^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone`
30
31 error: these bounds contain repeated elements
32   --> $DIR/trait_duplication_in_bounds.rs:60:24
33    |
34 LL | trait BadTraitBound<T: Clone + Clone + Clone + Copy, U: Clone + Copy> {
35    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
36
37 error: these where clauses contain repeated elements
38   --> $DIR/trait_duplication_in_bounds.rs:67:12
39    |
40 LL |         T: Clone + Clone + Clone + Copy,
41    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `Clone + Copy`
42
43 error: these bounds contain repeated elements
44   --> $DIR/trait_duplication_in_bounds.rs:100:19
45    |
46 LL | fn bad_generic<T: GenericTrait<u64> + GenericTrait<u32> + GenericTrait<u64>>(arg0: T) {
47    |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `GenericTrait<u64> + GenericTrait<u32>`
48
49 error: these bounds contain repeated elements
50   --> $DIR/trait_duplication_in_bounds.rs:108:22
51    |
52 LL | fn qualified_path<T: std::clone::Clone + Clone + foo::Clone>(arg0: T) {
53    |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `std::clone::Clone + foo::Clone`
54
55 error: aborting due to 8 previous errors
56