]> git.proxmox.com Git - rustc.git/blame - src/test/ui/type-alias-impl-trait/generic_duplicate_param_use.min_tait.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / type-alias-impl-trait / generic_duplicate_param_use.min_tait.stderr
CommitLineData
ba9703b0 1error: non-defining opaque type use in defining scope
6a06907d 2 --> $DIR/generic_duplicate_param_use.rs:16:30
ba9703b0
XL
3 |
4LL | fn one_ty<T: Debug>(t: T) -> TwoTys<T, T> {
5 | ^^^^^^^^^^^^
6 |
7note: type used multiple times
6a06907d 8 --> $DIR/generic_duplicate_param_use.rs:12:13
ba9703b0
XL
9 |
10LL | type TwoTys<T, U> = impl Debug;
11 | ^ ^
8faf50e0 12
ba9703b0 13error: non-defining opaque type use in defining scope
6a06907d 14 --> $DIR/generic_duplicate_param_use.rs:21:36
ba9703b0
XL
15 |
16LL | fn one_lifetime<'a>(t: &'a u32) -> TwoLifetimes<'a, 'a> {
17 | ^^^^^^^^^^^^^^^^^^^^
18 |
19note: lifetime used multiple times
6a06907d 20 --> $DIR/generic_duplicate_param_use.rs:13:19
ba9703b0
XL
21 |
22LL | type TwoLifetimes<'a, 'b> = impl Debug;
23 | ^^ ^^
24
25error: non-defining opaque type use in defining scope
6a06907d 26 --> $DIR/generic_duplicate_param_use.rs:26:50
ba9703b0
XL
27 |
28LL | fn one_const<const N: usize>(t: *mut [u8; N]) -> TwoConsts<N, N> {
29 | ^^^^^^^^^^^^^^^
30 |
31note: constant used multiple times
6a06907d 32 --> $DIR/generic_duplicate_param_use.rs:14:22
9fa01778 33 |
ba9703b0
XL
34LL | type TwoConsts<const X: usize, const Y: usize> = impl Debug;
35 | ^ ^
9fa01778 36
ba9703b0 37error: aborting due to 3 previous errors
8faf50e0 38