blob: da2dae1c46b064b8a39b8af5377b6e885628d59d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
struct RGB {
g: f64,
b: f64,
}
fn main() {
let (r, alone_in_path, b): (f32, f32, f32) = (e.clone(), e.clone());
//~^ ERROR cannot find value `e` in this scope
//~| ERROR cannot find value `e` in this scope
//~| ERROR mismatched types
let _ = RGB { r, g, b };
//~^ ERROR cannot find value `g` in this scope
//~| ERROR struct `RGB` has no field named `r`
//~| ERROR mismatched types
}
|