]> git.lizzy.rs Git - rust.git/blob - tests/ui/trait_duplication_in_bounds.stderr
Auto merge of #6336 - giraffate:sync-from-rust, r=flip1995
[rust.git] / tests / ui / trait_duplication_in_bounds.stderr
1 error: this trait bound is already specified in the where clause
2   --> $DIR/trait_duplication_in_bounds.rs:5:15
3    |
4 LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
5    |               ^^^^^
6    |
7 note: the lint level is defined here
8   --> $DIR/trait_duplication_in_bounds.rs:1:9
9    |
10 LL | #![deny(clippy::trait_duplication_in_bounds)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = help: consider removing this trait bound
13
14 error: this trait bound is already specified in the where clause
15   --> $DIR/trait_duplication_in_bounds.rs:5:23
16    |
17 LL | fn bad_foo<T: Clone + Default, Z: Copy>(arg0: T, arg1: Z)
18    |                       ^^^^^^^
19    |
20    = help: consider removing this trait bound
21
22 error: aborting due to 2 previous errors
23