diff options
Diffstat (limited to 'tests/ui/rfc-2306/convert-id-const-with-gate.rs')
-rw-r--r-- | tests/ui/rfc-2306/convert-id-const-with-gate.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/rfc-2306/convert-id-const-with-gate.rs b/tests/ui/rfc-2306/convert-id-const-with-gate.rs new file mode 100644 index 000000000..762dfbe48 --- /dev/null +++ b/tests/ui/rfc-2306/convert-id-const-with-gate.rs @@ -0,0 +1,7 @@ +// This test should pass since 'identity' is const fn. + +// build-pass (FIXME(62277): could be check-pass?) + +fn main() { + const _FOO: u8 = ::std::convert::identity(42u8); +} |