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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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() {}