rust/tests/ui/binop/multiply-is-deref-on-rhs.rs

8 lines
114 B
Rust

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