dbbaa50290
New style is allow(foo), warn(foo), deny(foo) and forbid(foo), mirrored by -A foo, -W foo, -D foo and -F foo on command line. These replace -W no-foo, -W foo, -W err-foo, respectively. Forbid is new, and means "deny, and you can't override it".
6 lines
113 B
Rust
6 lines
113 B
Rust
// compile-flags: -D path-statement
|
|
fn main() {
|
|
|
|
let x = 10;
|
|
x; //~ ERROR path statement with no effect
|
|
} |