]>
Commit | Line | Data |
---|---|---|
7453a54e SL |
1 | // Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT |
2 | // file at the top-level directory of this distribution and at | |
3 | // http://rust-lang.org/COPYRIGHT. | |
4 | // | |
5 | // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | |
6 | // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
7 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | |
8 | // option. This file may not be copied, modified, or distributed | |
9 | // except according to those terms. | |
10 | ||
11 | // ignore-tidy-linelength | |
12 | // compile-flags:-Zprint-trans-items=eager | |
13 | ||
14 | #![deny(dead_code)] | |
15 | ||
16 | //~ TRANS_ITEM drop-glue tuple_drop_glue::Dropped[0] | |
17 | struct Dropped; | |
18 | ||
19 | impl Drop for Dropped { | |
54a0048b | 20 | //~ TRANS_ITEM fn tuple_drop_glue::{{impl}}[0]::drop[0] |
7453a54e SL |
21 | fn drop(&mut self) {} |
22 | } | |
23 | ||
24 | //~ TRANS_ITEM fn tuple_drop_glue::main[0] | |
25 | fn main() { | |
26 | //~ TRANS_ITEM drop-glue (u32, tuple_drop_glue::Dropped[0]) | |
27 | let x = (0u32, Dropped); | |
28 | ||
29 | //~ TRANS_ITEM drop-glue (i16, (tuple_drop_glue::Dropped[0], bool)) | |
30 | //~ TRANS_ITEM drop-glue (tuple_drop_glue::Dropped[0], bool) | |
31 | let x = (0i16, (Dropped, true)); | |
32 | } |