]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-28839.rs
Rollup merge of #86479 - exphp-forks:float-debug-exponential, r=yaahc
[rust.git] / src / test / ui / issues / issue-28839.rs
1 // run-pass
2 // ignore-pretty issue #37199
3
4 pub struct Foo;
5
6 pub fn get_foo2<'a>(foo: &'a mut Option<&'a mut Foo>) -> &'a mut Foo {
7     match foo {
8         // Ensure that this is not considered a move, but rather a reborrow.
9         &mut Some(ref mut x) => *x,
10         &mut None => panic!(),
11     }
12 }
13
14 fn main() {
15 }