9 lines
114 B
Rust
9 lines
114 B
Rust
|
pub fn test(y: &i32) {
|
||
|
let x;
|
||
|
x = ()
|
||
|
*y
|
||
|
//~^ ERROR cannot multiply `()` by `&i32`
|
||
|
}
|
||
|
|
||
|
fn main() {}
|