blob: 0b20e1945e6f2f6e28ecfda0805d720111e42a60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// run-pass
fn main() {
let mut a = 0;
let mut b = 0;
let p = if maybe() {
&mut a
} else {
&mut b
};
use_(p);
}
fn maybe() -> bool { false }
fn use_<T>(_: T) { }
|