2025-07-13 16:39:45 -04:00
|
|
|
// https://github.com/rust-lang/rust/issues/9725
|
2015-01-08 21:54:35 +11:00
|
|
|
struct A { foo: isize }
|
2013-12-02 14:20:27 -08:00
|
|
|
|
|
|
|
|
fn main() {
|
2014-06-23 19:01:14 +02:00
|
|
|
let A { foo, foo } = A { foo: 3 };
|
|
|
|
|
//~^ ERROR: identifier `foo` is bound more than once in the same pattern
|
2015-12-11 20:59:11 +13:00
|
|
|
//~^^ ERROR: field `foo` bound multiple times
|
2013-12-02 14:20:27 -08:00
|
|
|
}
|