diff options
| author | Deadbeef <ent3rm4n@gmail.com> | 2024-10-02 19:42:06 +0800 |
|---|---|---|
| committer | Deadbeef <ent3rm4n@gmail.com> | 2024-10-02 19:45:17 +0800 |
| commit | 7f6150b5777a25ef8975a11266b0205d6ba8ab71 (patch) | |
| tree | 68850cb8f3844aa440aa1ab828b2097d934a19ff /tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs | |
| parent | 2305aad7ac23331e75465eccf425f899fa53a8d8 (diff) | |
| download | rust-7f6150b5777a25ef8975a11266b0205d6ba8ab71.tar.gz rust-7f6150b5777a25ef8975a11266b0205d6ba8ab71.zip | |
Improve const traits diagnostics for new desugaring
Diffstat (limited to 'tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs')
| -rw-r--r-- | tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs b/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs index 74e33ca72ff..f9e79d41752 100644 --- a/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs +++ b/tests/ui/rfcs/rfc-2632-const-trait-impl/call-generic-method-nonconst.rs @@ -1,4 +1,6 @@ -#![feature(const_trait_impl, effects)] //~ WARN the feature `effects` is incomplete +//@ compile-flags: -Znext-solver +#![allow(incomplete_features)] +#![feature(const_trait_impl, effects)] struct S; @@ -21,7 +23,6 @@ const fn equals_self<T: ~const Foo>(t: &T) -> bool { // it not using the impl. pub const EQ: bool = equals_self(&S); -//~^ ERROR: the trait bound `Runtime: const Compat` is not satisfied -// FIXME(effects) diagnostic +//~^ ERROR: the trait bound `S: const Foo` is not satisfied fn main() {} |
