@@ -2,8 +2,13 @@ error[E0277]: `NotParam` can't be used as a const parameter type
2
2
--> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:10:13
3
3
|
4
4
LL | check::<&NotParam>();
5
- | ^^^^^^^^^ the trait `ConstParamTy_` is not implemented for `NotParam`
5
+ | ^^^^^^^^^ unsatisfied trait bound
6
6
|
7
+ help: the trait `ConstParamTy_` is not implemented for `NotParam`
8
+ --> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:5:1
9
+ |
10
+ LL | struct NotParam;
11
+ | ^^^^^^^^^^^^^^^
7
12
= note: required for `&NotParam` to implement `ConstParamTy_`
8
13
note: required by a bound in `check`
9
14
--> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:7:13
@@ -15,8 +20,13 @@ error[E0277]: `NotParam` can't be used as a const parameter type
15
20
--> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:11:13
16
21
|
17
22
LL | check::<[NotParam]>();
18
- | ^^^^^^^^^^ the trait `ConstParamTy_` is not implemented for `NotParam`
23
+ | ^^^^^^^^^^ unsatisfied trait bound
24
+ |
25
+ help: the trait `ConstParamTy_` is not implemented for `NotParam`
26
+ --> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:5:1
19
27
|
28
+ LL | struct NotParam;
29
+ | ^^^^^^^^^^^^^^^
20
30
= note: required for `[NotParam]` to implement `ConstParamTy_`
21
31
note: required by a bound in `check`
22
32
--> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:7:13
@@ -28,8 +38,13 @@ error[E0277]: `NotParam` can't be used as a const parameter type
28
38
--> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:12:13
29
39
|
30
40
LL | check::<[NotParam; 17]>();
31
- | ^^^^^^^^^^^^^^ the trait `ConstParamTy_` is not implemented for `NotParam`
41
+ | ^^^^^^^^^^^^^^ unsatisfied trait bound
42
+ |
43
+ help: the trait `ConstParamTy_` is not implemented for `NotParam`
44
+ --> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:5:1
32
45
|
46
+ LL | struct NotParam;
47
+ | ^^^^^^^^^^^^^^^
33
48
= note: required for `[NotParam; 17]` to implement `ConstParamTy_`
34
49
note: required by a bound in `check`
35
50
--> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:7:13
0 commit comments