diff options
Diffstat (limited to 'src/test/ui/mismatched_types/const-fn-in-trait.rs')
-rw-r--r-- | src/test/ui/mismatched_types/const-fn-in-trait.rs | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/test/ui/mismatched_types/const-fn-in-trait.rs b/src/test/ui/mismatched_types/const-fn-in-trait.rs deleted file mode 100644 index e04d59c58..000000000 --- a/src/test/ui/mismatched_types/const-fn-in-trait.rs +++ /dev/null @@ -1,11 +0,0 @@ -trait Foo { - fn f() -> u32; - const fn g(); //~ ERROR cannot be declared const -} - -impl Foo for u32 { - const fn f() -> u32 { 22 } //~ ERROR cannot be declared const - fn g() {} -} - -fn main() { } |