summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/substitute-params-bad.stderr
blob: 7a7808ba67b14d3ee6ecb5c5ddcffef17b70ca26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error: lifetime parameters must be declared prior to type and const parameters
  --> $DIR/substitute-params-bad.rs:9:9
   |
LL | impl<T, 'a> S<T> {
   |     ----^^- help: reorder the parameters: lifetimes, then consts and types: `<'a, T>`

error[E0308]: mismatched types
  --> $DIR/substitute-params-bad.rs:22:35
   |
LL |     let _: Subj<(i32, i32)>::Un = 0i32;
   |            --------------------   ^^^^ expected `(i32, i32)`, found `i32`
   |            |
   |            expected due to this
   |
   = note: expected tuple `(i32, i32)`
               found type `i32`

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.