]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-13507-2.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / issues / issue-13507-2.rs
CommitLineData
b7449926 1// run-pass
0bf4aa26 2#![allow(unused_imports)]
532ac7d7 3// aux-build:issue-13507.rs
c34b1796 4
532ac7d7
XL
5extern crate issue_13507;
6use issue_13507::testtypes;
1a4d82fc 7
85aaf69f 8use std::any::TypeId;
1a4d82fc
JJ
9
10pub fn type_ids() -> Vec<TypeId> {
532ac7d7 11 use issue_13507::testtypes::*;
54a0048b
SL
12 vec![
13 TypeId::of::<FooBool>(),
14 TypeId::of::<FooInt>(),
15 TypeId::of::<FooUint>(),
16 TypeId::of::<FooFloat>(),
17 TypeId::of::<FooStr>(),
18 TypeId::of::<FooArray>(),
19 TypeId::of::<FooSlice>(),
20 TypeId::of::<FooBox>(),
21 TypeId::of::<FooPtr>(),
22 TypeId::of::<FooRef>(),
23 TypeId::of::<FooFnPtr>(),
24 TypeId::of::<FooNil>(),
25 TypeId::of::<FooTuple>(),
dc9dc135 26 TypeId::of::<dyn FooTrait>(),
54a0048b
SL
27 TypeId::of::<FooStruct>(),
28 TypeId::of::<FooEnum>()
29 ]
1a4d82fc
JJ
30}
31
32pub fn main() {
532ac7d7 33 let othercrate = issue_13507::testtypes::type_ids();
1a4d82fc
JJ
34 let thiscrate = type_ids();
35 assert_eq!(thiscrate, othercrate);
36}