summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rfc-2306/convert-id-const-with-gate.rs
blob: 762dfbe484396201c90fc4df42c3f8fb007f7c22 (plain)
1
2
3
4
5
6
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);
}