2016-02-15 09:59:56 -06:00
|
|
|
#![feature(plugin, non_ascii_idents)]
|
|
|
|
#![plugin(clippy)]
|
|
|
|
#![deny(clippy)]
|
|
|
|
|
|
|
|
enum FakeCallType {
|
|
|
|
CALL, CREATE
|
|
|
|
}
|
|
|
|
|
|
|
|
enum FakeCallType2 {
|
|
|
|
CALL, CREATELL
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Foo {
|
2016-06-08 08:32:30 -05:00
|
|
|
cFoo, //~ ERROR: Variant name ends with the enum's name
|
|
|
|
cBar,
|
2016-02-15 09:59:56 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
enum BadCallType { //~ ERROR: All variants have the same prefix: `CallType`
|
|
|
|
CallTypeCall,
|
|
|
|
CallTypeCreate,
|
|
|
|
CallTypeDestroy,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum TwoCallType { //~ ERROR: All variants have the same prefix: `CallType`
|
|
|
|
CallTypeCall,
|
|
|
|
CallTypeCreate,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Consts { //~ ERROR: All variants have the same prefix: `Constant`
|
|
|
|
ConstantInt,
|
|
|
|
ConstantCake,
|
|
|
|
ConstantLie,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Two { //~ ERROR: All variants have the same prefix: `Constant`
|
|
|
|
ConstantInt,
|
|
|
|
ConstantInfer,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Something {
|
|
|
|
CCall,
|
|
|
|
CCreate,
|
|
|
|
CCryogenize,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Seal {
|
|
|
|
With,
|
|
|
|
Without,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Seall {
|
|
|
|
With,
|
|
|
|
WithOut,
|
|
|
|
Withbroken,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Sealll {
|
|
|
|
With,
|
|
|
|
WithOut,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Seallll { //~ ERROR: All variants have the same prefix: `With`
|
|
|
|
WithOutCake,
|
|
|
|
WithOut,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum NonCaps { //~ ERROR: All variants have the same prefix: `Prefix`
|
|
|
|
Prefix的,
|
|
|
|
PrefixCake,
|
|
|
|
}
|
|
|
|
|
2016-06-08 08:32:30 -05:00
|
|
|
enum Stuff {
|
|
|
|
BadStuff, //~ ERROR: Variant name ends with the enum's name
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Food {
|
|
|
|
FoodGood, //~ ERROR: Variant name starts with the enum's name
|
|
|
|
}
|
|
|
|
|
2016-02-15 09:59:56 -06:00
|
|
|
fn main() {}
|