summaryrefslogtreecommitdiffstats
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-const.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-const.rs')
-rw-r--r--tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-const.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-const.rs b/tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-const.rs
index bfe98b98c..94be3ff46 100644
--- a/tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-const.rs
+++ b/tests/ui/rfcs/rfc-2632-const-trait-impl/trait-where-clause-const.rs
@@ -2,7 +2,9 @@
// Checking the validity of traits' where clauses happen at a later stage.
// (`rustc_const_eval` instead of `rustc_hir_analysis`) Therefore one file as a
// test is not enough.
-#![feature(const_trait_impl)]
+// known-bug: #110395
+// FIXME check-pass
+#![feature(const_trait_impl, effects)]
#[const_trait]
trait Bar {}
@@ -17,9 +19,9 @@ trait Foo {
const fn test1<T: ~const Foo + Bar>() {
T::a();
T::b();
- //~^ ERROR the trait bound
+ //FIXME ~^ ERROR the trait bound
T::c::<T>();
- //~^ ERROR the trait bound
+ //FIXME ~^ ERROR the trait bound
}
const fn test2<T: ~const Foo + ~const Bar>() {