Nomenclature fixes in the lint checker. Fewer double-negatives.
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".
2012-07-27 00:08:21 +00:00
|
|
|
// compile-flags: -D path-statement
|
2012-04-26 20:47:13 +00:00
|
|
|
fn main() {
|
|
|
|
|
|
|
|
let x = 10;
|
2012-06-30 11:23:59 +00:00
|
|
|
x; //~ ERROR path statement with no effect
|
2012-04-26 20:47:13 +00:00
|
|
|
}
|