about summary refs log tree commit diff
path: root/tests/ui/binop/multiply-is-deref-on-rhs.rs
blob: 7c24e1b4d57653db8f5088c9462b37cfe900f5b0 (plain)
1
2
3
4
5
6
7
8
pub fn test(y: &i32) {
    let x;
    x = ()
    *y
    //~^ ERROR cannot multiply `()` by `&i32`
}

fn main() {}