2018-08-30 07:18:55 -05:00
|
|
|
// run-pass
|
2018-09-25 16:51:35 -05:00
|
|
|
#![allow(unused_imports)]
|
2019-03-11 19:49:17 -05:00
|
|
|
// aux-build:issue-13507.rs
|
2015-03-05 20:33:58 -06:00
|
|
|
|
2019-03-11 19:49:17 -05:00
|
|
|
extern crate issue_13507;
|
|
|
|
use issue_13507::testtypes;
|
2014-04-14 19:39:52 -05:00
|
|
|
|
2015-01-14 18:08:07 -06:00
|
|
|
use std::any::TypeId;
|
2014-04-14 19:39:52 -05:00
|
|
|
|
|
|
|
pub fn type_ids() -> Vec<TypeId> {
|
2019-03-11 19:49:17 -05:00
|
|
|
use issue_13507::testtypes::*;
|
2015-06-13 15:15:03 -05:00
|
|
|
vec![
|
|
|
|
TypeId::of::<FooBool>(),
|
|
|
|
TypeId::of::<FooInt>(),
|
|
|
|
TypeId::of::<FooUint>(),
|
|
|
|
TypeId::of::<FooFloat>(),
|
|
|
|
TypeId::of::<FooStr>(),
|
|
|
|
TypeId::of::<FooArray>(),
|
|
|
|
TypeId::of::<FooSlice>(),
|
|
|
|
TypeId::of::<FooBox>(),
|
|
|
|
TypeId::of::<FooPtr>(),
|
|
|
|
TypeId::of::<FooRef>(),
|
|
|
|
TypeId::of::<FooFnPtr>(),
|
|
|
|
TypeId::of::<FooNil>(),
|
|
|
|
TypeId::of::<FooTuple>(),
|
2019-05-28 13:47:21 -05:00
|
|
|
TypeId::of::<dyn FooTrait>(),
|
2015-06-13 15:15:03 -05:00
|
|
|
TypeId::of::<FooStruct>(),
|
|
|
|
TypeId::of::<FooEnum>()
|
|
|
|
]
|
2014-04-14 19:39:52 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {
|
2019-03-11 19:49:17 -05:00
|
|
|
let othercrate = issue_13507::testtypes::type_ids();
|
2014-04-14 19:39:52 -05:00
|
|
|
let thiscrate = type_ids();
|
|
|
|
assert_eq!(thiscrate, othercrate);
|
|
|
|
}
|