about summary refs log tree commit diff
path: root/tests/ui/rfcs/rfc-2632-const-trait-impl/do-not-const-check-override.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-10-22 00:03:09 +0000
committerMichael Goulet <michael@errs.io>2024-10-22 00:03:09 +0000
commite91267f3f094a6f5d16aef0abb864fca4bc8c9f4 (patch)
treeba5ce9ae085572e299066b12a06da711416eea87 /tests/ui/rfcs/rfc-2632-const-trait-impl/do-not-const-check-override.rs
parentedbd9398dcc0e3b6ffe0dd0cd4578d37d1d36974 (diff)
downloadrust-e91267f3f094a6f5d16aef0abb864fca4bc8c9f4.tar.gz
rust-e91267f3f094a6f5d16aef0abb864fca4bc8c9f4.zip
Move tests
Diffstat (limited to 'tests/ui/rfcs/rfc-2632-const-trait-impl/do-not-const-check-override.rs')
-rw-r--r--tests/ui/rfcs/rfc-2632-const-trait-impl/do-not-const-check-override.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/ui/rfcs/rfc-2632-const-trait-impl/do-not-const-check-override.rs b/tests/ui/rfcs/rfc-2632-const-trait-impl/do-not-const-check-override.rs
deleted file mode 100644
index 71e6375283f..00000000000
--- a/tests/ui/rfcs/rfc-2632-const-trait-impl/do-not-const-check-override.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-//@ check-pass
-//@ compile-flags: -Znext-solver
-#![allow(incomplete_features)]
-#![feature(const_trait_impl, rustc_attrs, effects)]
-
-#[const_trait]
-trait Foo {
-    #[rustc_do_not_const_check]
-    fn into_iter(&self) { println!("FEAR ME!") }
-}
-
-
-impl const Foo for () {
-    fn into_iter(&self) {
-        // ^_^
-    }
-}
-
-const _: () = Foo::into_iter(&());
-
-fn main() {}