diff options
Diffstat (limited to 'src/test/ui/const-generics/const-fn-with-const-param.rs')
-rw-r--r-- | src/test/ui/const-generics/const-fn-with-const-param.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/test/ui/const-generics/const-fn-with-const-param.rs b/src/test/ui/const-generics/const-fn-with-const-param.rs deleted file mode 100644 index 161bfaab4..000000000 --- a/src/test/ui/const-generics/const-fn-with-const-param.rs +++ /dev/null @@ -1,10 +0,0 @@ -// Checks that `const fn` with const params can be used. -// run-pass - -const fn const_u32_identity<const X: u32>() -> u32 { - X -} - -fn main() { - assert_eq!(const_u32_identity::<18>(), 18); -} |