summaryrefslogtreecommitdiffstats
path: root/tests/ui/binding/borrowed-ptr-pattern-infallible.rs
blob: 1bbc03e19bafa183b11a19096ac86d63f9062b17 (plain)
1
2
3
4
5
6
7
8
// run-pass


pub fn main() {
    let (&x, &y) = (&3, &'a');
    assert_eq!(x, 3);
    assert_eq!(y, 'a');
}