diff options
Diffstat (limited to 'tests/ui/traits/const-traits/overlap-const-with-nonconst.rs')
| -rw-r--r-- | tests/ui/traits/const-traits/overlap-const-with-nonconst.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/traits/const-traits/overlap-const-with-nonconst.rs b/tests/ui/traits/const-traits/overlap-const-with-nonconst.rs index eb66d03faa6..f45690b2f78 100644 --- a/tests/ui/traits/const-traits/overlap-const-with-nonconst.rs +++ b/tests/ui/traits/const-traits/overlap-const-with-nonconst.rs @@ -15,7 +15,7 @@ trait Foo { } impl<T> const Foo for T where - T: ~const Bar, + T: [const] Bar, { default fn method(&self) {} } @@ -27,7 +27,7 @@ impl<T> Foo for (T,) { } } -const fn dispatch<T: ~const Bar + Copy>(t: T) { +const fn dispatch<T: [const] Bar + Copy>(t: T) { t.method(); } |
