rust/tests/mir-opt/impossible_predicates.rs

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

11 lines
232 B
Rust
Raw Normal View History

// skip-filecheck
// EMIT_MIR impossible_predicates.impossible_predicate.ImpossiblePredicates.diff
pub fn impossible_predicate(x: &mut i32) -> (&mut i32, &mut i32)
where
for<'a> &'a mut i32: Copy,
{
let y = x;
(y, x)
}