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

9 lines
114 B
Rust
Raw Permalink Normal View History

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