]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/rfcs/rfc-2528-type-changing-struct-update/feature-gate.rs
1 // gate-test-type_changing_struct_update
6 common_field1
: &'
static str,
11 #[derive(Debug, PartialEq)]
14 fn update_to_state2() {
15 let m1
: Machine
<State1
> = Machine
{
17 common_field1
: "hello",
20 let m2
: Machine
<State2
> = Machine
{
23 //~^ ERROR type changing struct updating is experimental [E0658]
24 //~| ERROR mismatched types [E0308]
26 assert_eq
!(State2
, m2
.state
);