rust/tests/ui/rfc-2306/convert-id-const-with-gate.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
175 B
Rust
Raw Normal View History

2018-10-23 00:04:14 +00:00
// This test should pass since 'identity' is const fn.
2018-08-19 19:06:43 +00:00
// build-pass (FIXME(62277): could be check-pass?)
2018-08-19 19:06:43 +00:00
fn main() {
const _FOO: u8 = ::std::convert::identity(42u8);
}