| 1 |
// https://doc.rust-lang.org/error_codes/E0425.html |
| 2 |
fn main() { |
| 3 |
let f = x * x * 3; // { dg-error "cannot find value .x. in this scope" } |
| 4 |
let a = f(); // invalid, too few parameters |
| 5 |
let b = f(4); // this works! |
| 6 |
let c = f(2, 3); // invalid, too many parameters |
| 7 |
} |