]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/borrowed-ptr-pattern-infallible.rs
Rollup merge of #95376 - WaffleLapkin:drain_keep_rest, r=dtolnay
[rust.git] / src / test / ui / binding / borrowed-ptr-pattern-infallible.rs
1 // run-pass
2
3
4 pub fn main() {
5     let (&x, &y) = (&3, &'a');
6     assert_eq!(x, 3);
7     assert_eq!(y, 'a');
8 }