blob: adfb0387f46a24720cfebaf34300edad063b427d (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
fn main() {
let ref is_ref @ is_val = 42;
*is_ref;
*is_val;
//~^ ERROR cannot be dereferenced
let is_val @ ref is_ref = 42;
*is_ref;
*is_val;
//~^ ERROR cannot be dereferenced
}
|