// Regression test for . enum Foo { One, Two, } fn main() { Foo::One = Foo::One; //~^ ERROR refutable pattern in assignment }