|
1 |
| -error[E0053]: method `foo` has an incompatible generic parameter for trait: `Trait` |
| 1 | +error[E0053]: method `foo` has an incompatible generic parameter for trait `Trait` |
2 | 2 | --> $DIR/mismatched_ty_const_in_trait_impl.rs:5:12
|
3 | 3 | |
|
4 | 4 | LL | trait Trait {
|
|
9 | 9 | LL | impl Trait for () {
|
10 | 10 | | -----------------
|
11 | 11 | LL | fn foo<const M: u64>() {}
|
12 |
| - | ^^^^^^^^^^^^ found const parameter with type `u64` |
| 12 | + | ^^^^^^^^^^^^ found const parameter of type `u64` |
13 | 13 |
|
14 |
| -error[E0053]: method `bar` has an incompatible generic parameter for trait: `Other` |
| 14 | +error[E0053]: method `bar` has an incompatible generic parameter for trait `Other` |
15 | 15 | --> $DIR/mismatched_ty_const_in_trait_impl.rs:13:12
|
16 | 16 | |
|
17 | 17 | LL | trait Other {
|
18 | 18 | | -----
|
19 | 19 | LL | fn bar<const M: u8>() {}
|
20 |
| - | ----------- expected const parameter with type `u8` |
| 20 | + | ----------- expected const parameter of type `u8` |
21 | 21 | LL | }
|
22 | 22 | LL | impl Other for () {
|
23 | 23 | | -----------------
|
24 | 24 | LL | fn bar<T>() {}
|
25 | 25 | | ^ found type parameter
|
26 | 26 |
|
27 |
| -error[E0053]: method `baz` has an incompatible generic parameter for trait: `Uwu` |
| 27 | +error[E0053]: method `baz` has an incompatible generic parameter for trait `Uwu` |
28 | 28 | --> $DIR/mismatched_ty_const_in_trait_impl.rs:21:12
|
29 | 29 | |
|
30 | 30 | LL | trait Uwu {
|
31 | 31 | | ---
|
32 | 32 | LL | fn baz<const N: u32>() {}
|
33 |
| - | ------------ expected const parameter with type `u32` |
| 33 | + | ------------ expected const parameter of type `u32` |
34 | 34 | LL | }
|
35 | 35 | LL | impl Uwu for () {
|
36 | 36 | | ---------------
|
37 | 37 | LL | fn baz<const N: i32>() {}
|
38 |
| - | ^^^^^^^^^^^^ found const parameter with type `i32` |
| 38 | + | ^^^^^^^^^^^^ found const parameter of type `i32` |
39 | 39 |
|
40 |
| -error[E0053]: method `bbbb` has an incompatible generic parameter for trait: `Aaaaaa` |
| 40 | +error[E0053]: method `bbbb` has an incompatible generic parameter for trait `Aaaaaa` |
41 | 41 | --> $DIR/mismatched_ty_const_in_trait_impl.rs:29:13
|
42 | 42 | |
|
43 | 43 | LL | trait Aaaaaa {
|
44 | 44 | | ------
|
45 | 45 | LL | fn bbbb<const N: u32, T>() {}
|
46 |
| - | ------------ expected const parameter with type `u32` |
| 46 | + | ------------ expected const parameter of type `u32` |
47 | 47 | LL | }
|
48 | 48 | LL | impl Aaaaaa for () {
|
49 | 49 | | ------------------
|
50 | 50 | LL | fn bbbb<T, const N: u32>() {}
|
51 | 51 | | ^ found type parameter
|
52 | 52 |
|
53 |
| -error[E0053]: method `abcd` has an incompatible generic parameter for trait: `Names` |
| 53 | +error[E0053]: method `abcd` has an incompatible generic parameter for trait `Names` |
54 | 54 | --> $DIR/mismatched_ty_const_in_trait_impl.rs:37:13
|
55 | 55 | |
|
56 | 56 | LL | trait Names {
|
|
61 | 61 | LL | impl Names for () {
|
62 | 62 | | -----------------
|
63 | 63 | LL | fn abcd<const N: u32, T>() {}
|
64 |
| - | ^^^^^^^^^^^^ found const parameter with type `u32` |
| 64 | + | ^^^^^^^^^^^^ found const parameter of type `u32` |
65 | 65 |
|
66 | 66 | error: aborting due to 5 previous errors
|
67 | 67 |
|
|
0 commit comments