]> git.lizzy.rs Git - rust.git/blob - tests/ui/type-alias-impl-trait/generic_duplicate_param_use.stderr
Auto merge of #106458 - albertlarsan68:move-tests, r=jyn514
[rust.git] / tests / ui / type-alias-impl-trait / generic_duplicate_param_use.stderr
1 error: non-defining opaque type use in defining scope
2   --> $DIR/generic_duplicate_param_use.rs:21:5
3    |
4 LL |     t
5    |     ^
6    |
7 note: type used multiple times
8   --> $DIR/generic_duplicate_param_use.rs:8:13
9    |
10 LL | type TwoTys<T, U> = impl Debug;
11    |             ^  ^
12
13 error: non-defining opaque type use in defining scope
14   --> $DIR/generic_duplicate_param_use.rs:26:5
15    |
16 LL |     t
17    |     ^
18    |
19 note: lifetime used multiple times
20   --> $DIR/generic_duplicate_param_use.rs:15:19
21    |
22 LL | type TwoLifetimes<'a, 'b> = impl Debug + Captures<'a> + Captures<'b>;
23    |                   ^^  ^^
24
25 error: non-defining opaque type use in defining scope
26   --> $DIR/generic_duplicate_param_use.rs:31:5
27    |
28 LL |     t
29    |     ^
30    |
31 note: constant used multiple times
32   --> $DIR/generic_duplicate_param_use.rs:17:16
33    |
34 LL | type TwoConsts<const X: usize, const Y: usize> = impl Debug;
35    |                ^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^
36
37 error: aborting due to 3 previous errors
38