]> git.lizzy.rs Git - rust.git/blob - src/test/ui/span/E0493.rs
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / E0493.rs
1 struct Foo {
2     a: u32
3 }
4
5 impl Drop for Foo {
6     fn drop(&mut self) {}
7 }
8
9 struct Bar {
10     a: u32
11 }
12
13 impl Drop for Bar {
14     fn drop(&mut self) {}
15 }
16
17 const F : Foo = (Foo { a : 0 }, Foo { a : 1 }).1;
18 //~^ destructors cannot be evaluated at compile-time
19
20 fn main() {
21 }