]> git.proxmox.com Git - rustc.git/blob - tests/ui/associated-inherent-types/substitute-params-bad.stderr
New upstream version 1.69.0+dfsg1
[rustc.git] / tests / ui / associated-inherent-types / substitute-params-bad.stderr
1 error: lifetime parameters must be declared prior to type and const parameters
2 --> $DIR/substitute-params-bad.rs:9:9
3 |
4 LL | impl<T, 'a> S<T> {
5 | ----^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T>`
6
7 error[E0308]: mismatched types
8 --> $DIR/substitute-params-bad.rs:22:35
9 |
10 LL | let _: Subj<(i32, i32)>::Un = 0i32;
11 | -------------------- ^^^^ expected `(i32, i32)`, found `i32`
12 | |
13 | expected due to this
14 |
15 = note: expected tuple `(i32, i32)`
16 found type `i32`
17
18 error: aborting due to 2 previous errors
19
20 For more information about this error, try `rustc --explain E0308`.