Skip to content

Commit 1f44a24

Browse files
committed
--bless ConstParamTy ui tests
1 parent 2f70d02 commit 1f44a24

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/ui/const-generics/adt_const_params/const_param_ty_bad.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fn check(_: impl std::marker::ConstParamTy) {}
55

66
fn main() {
77
check(main); //~ error: `fn() {main}` can't be used as a const parameter type
8-
check(|| {}); //~ error: `[closure@fake-test-src-base/const-generics/adt_const_params/const_param_ty_bad.rs:8:11: 8:13]` can't be used as a const parameter type
8+
check(|| {}); //~ error: `[closure@$DIR/const_param_ty_bad.rs:8:11: 8:13]` can't be used as a const parameter type
99
check(main as fn()); //~ error: `fn()` can't be used as a const parameter type
1010
check(&mut ()); //~ error: `&mut ()` can't be used as a const parameter type
1111
check(&mut () as *mut ()); //~ error: `*mut ()` can't be used as a const parameter type

tests/ui/const-generics/adt_const_params/const_param_ty_impl_bad_field.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ struct NotParam;
88
struct CantParam(NotParam);
99

1010
impl std::marker::ConstParamTy for CantParam {}
11-
//~^ error: the trait `ConstParamTy` may not be implemented for this type
11+
//~^ error: the trait `ConstParamTy` cannot be implemented for this type
1212

1313
fn main() {}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error[E0204]: the trait `ConstParamTy` may not be implemented for this type
1+
error[E0204]: the trait `ConstParamTy` cannot be implemented for this type
22
--> $DIR/const_param_ty_impl_bad_field.rs:10:36
33
|
44
LL | struct CantParam(NotParam);

0 commit comments

Comments
 (0)