diff options
| author | Nathaniel McCallum <nathaniel@mccallum.life> | 2025-08-31 22:26:10 -0400 |
|---|---|---|
| committer | León Orell Valerian Liehr <me@fmease.dev> | 2025-09-06 04:35:52 +0200 |
| commit | 00fcb14e4e6e4fb28fde6a286fd9ac30a2d457c7 (patch) | |
| tree | 00d1276f71461788745df2b5cc15af546d3d3e76 /tests | |
| parent | 6c699a37235700ab749e3f14147fe41d49c056e8 (diff) | |
| download | rust-00fcb14e4e6e4fb28fde6a286fd9ac30a2d457c7.tar.gz rust-00fcb14e4e6e4fb28fde6a286fd9ac30a2d457c7.zip | |
clean up some old const trait impl syntax
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ui/traits/const-traits/constructor-const-fn.rs | 2 | ||||
| -rw-r--r-- | tests/ui/traits/const-traits/reservation-impl-ice.rs | 2 | ||||
| -rw-r--r-- | tests/ui/traits/const-traits/reservation-impl-ice.stderr | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/ui/traits/const-traits/constructor-const-fn.rs b/tests/ui/traits/const-traits/constructor-const-fn.rs index 4a7bf531df2..af40ad94d1c 100644 --- a/tests/ui/traits/const-traits/constructor-const-fn.rs +++ b/tests/ui/traits/const-traits/constructor-const-fn.rs @@ -1,7 +1,7 @@ //@ check-pass //@ compile-flags: -Znext-solver #![feature(const_trait_impl)] -const fn impls_fn<F: ~const Fn(u32) -> Foo>(_: &F) {} +const fn impls_fn<F: [const] Fn(u32) -> Foo>(_: &F) {} struct Foo(u32); diff --git a/tests/ui/traits/const-traits/reservation-impl-ice.rs b/tests/ui/traits/const-traits/reservation-impl-ice.rs index 7fefb4ec543..3fbfe8c950d 100644 --- a/tests/ui/traits/const-traits/reservation-impl-ice.rs +++ b/tests/ui/traits/const-traits/reservation-impl-ice.rs @@ -1,7 +1,7 @@ //@ compile-flags: -Znext-solver #![feature(const_convert, never_type, const_trait_impl)] -const fn impls_from<T: ~const From<!>>() {} +const fn impls_from<T: [const] From<!>>() {} const fn foo() { // This previously ICE'd when encountering the reservation impl diff --git a/tests/ui/traits/const-traits/reservation-impl-ice.stderr b/tests/ui/traits/const-traits/reservation-impl-ice.stderr index a3fdcbac69e..d30c014d63f 100644 --- a/tests/ui/traits/const-traits/reservation-impl-ice.stderr +++ b/tests/ui/traits/const-traits/reservation-impl-ice.stderr @@ -17,8 +17,8 @@ LL | impls_from::<()>(); note: required by a bound in `impls_from` --> $DIR/reservation-impl-ice.rs:4:24 | -LL | const fn impls_from<T: ~const From<!>>() {} - | ^^^^^^^^^^^^^^ required by this bound in `impls_from` +LL | const fn impls_from<T: [const] From<!>>() {} + | ^^^^^^^^^^^^^^^ required by this bound in `impls_from` error: aborting due to 1 previous error |
