diff options
Diffstat (limited to 'src/test/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.rs')
-rw-r--r-- | src/test/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.rs | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/test/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.rs b/src/test/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.rs deleted file mode 100644 index 52984fb6b..000000000 --- a/src/test/ui/rfc-2632-const-trait-impl/const-check-fns-in-const-impl.rs +++ /dev/null @@ -1,16 +0,0 @@ -#![feature(const_trait_impl)] - -struct S; -#[const_trait] -trait T { - fn foo(); -} - -fn non_const() {} - -impl const T for S { - fn foo() { non_const() } - //~^ ERROR cannot call non-const fn -} - -fn main() {} |