Skip to content

Commit 1f70531

Browse files
committed
Fix rebase error
1 parent f889958 commit 1f70531

File tree

2 files changed

+30
-5
lines changed

2 files changed

+30
-5
lines changed

tests/ui/const-generics/adt_const_params/const_param_ty_generic_bounds_do_not_hold.stderr

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@ error[E0277]: `NotParam` can't be used as a const parameter type
22
--> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:10:13
33
|
44
LL | check::<&NotParam>();
5-
| ^^^^^^^^^ the trait `ConstParamTy_` is not implemented for `NotParam`
5+
| ^^^^^^^^^ unsatisfied trait bound
66
|
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+
| ^^^^^^^^^^^^^^^
712
= note: required for `&NotParam` to implement `ConstParamTy_`
813
note: required by a bound in `check`
914
--> $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
1520
--> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:11:13
1621
|
1722
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
1927
|
28+
LL | struct NotParam;
29+
| ^^^^^^^^^^^^^^^
2030
= note: required for `[NotParam]` to implement `ConstParamTy_`
2131
note: required by a bound in `check`
2232
--> $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
2838
--> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:12:13
2939
|
3040
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
3245
|
46+
LL | struct NotParam;
47+
| ^^^^^^^^^^^^^^^
3348
= note: required for `[NotParam; 17]` to implement `ConstParamTy_`
3449
note: required by a bound in `check`
3550
--> $DIR/const_param_ty_generic_bounds_do_not_hold.rs:7:13

tests/ui/const-generics/adt_const_params/const_param_ty_impl_no_structural_eq.stderr

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,13 @@ error[E0277]: the type `CantParam` does not `#[derive(PartialEq)]`
1616
--> $DIR/const_param_ty_impl_no_structural_eq.rs:10:37
1717
|
1818
LL | impl std::marker::ConstParamTy_ for CantParam {}
19-
| ^^^^^^^^^ the trait `StructuralPartialEq` is not implemented for `CantParam`
19+
| ^^^^^^^^^ unsatisfied trait bound
2020
|
21+
help: the trait `StructuralPartialEq` is not implemented for `CantParam`
22+
--> $DIR/const_param_ty_impl_no_structural_eq.rs:8:1
23+
|
24+
LL | struct CantParam(ImplementsConstParamTy);
25+
| ^^^^^^^^^^^^^^^^
2126
note: required by a bound in `ConstParamTy_`
2227
--> $SRC_DIR/core/src/marker.rs:LL:COL
2328

@@ -39,8 +44,13 @@ error[E0277]: the type `CantParamDerive` does not `#[derive(PartialEq)]`
3944
--> $DIR/const_param_ty_impl_no_structural_eq.rs:14:10
4045
|
4146
LL | #[derive(std::marker::ConstParamTy)]
42-
| ^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `StructuralPartialEq` is not implemented for `CantParamDerive`
47+
| ^^^^^^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound
4348
|
49+
help: the trait `StructuralPartialEq` is not implemented for `CantParamDerive`
50+
--> $DIR/const_param_ty_impl_no_structural_eq.rs:17:1
51+
|
52+
LL | struct CantParamDerive(ImplementsConstParamTy);
53+
| ^^^^^^^^^^^^^^^^^^^^^^
4454
note: required by a bound in `ConstParamTy_`
4555
--> $SRC_DIR/core/src/marker.rs:LL:COL
4656

0 commit comments

Comments
 (0)