about summary refs log tree commit diff
path: root/tests/mir-opt/impossible_predicates.rs
blob: 34adf7f91614468d1b924e1107273d1bb0ea9a77 (plain)
1
2
3
4
5
6
7
8
9
10
// 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)
}