2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(unused_imports)]
|
2019-03-12 00:49:17 +00:00
|
|
|
// aux-build:issue-13507.rs
|
2015-03-05 18:33:58 -08:00
|
|
|
|
2019-03-12 00:49:17 +00:00
|
|
|
extern crate issue_13507;
|
|
|
|
use issue_13507::testtypes;
|
2014-04-14 17:39:52 -07:00
|
|
|
|
2015-01-14 16:08:07 -08:00
|
|
|
use std::any::TypeId;
|
2014-04-14 17:39:52 -07:00
|
|
|
|
|
|
|
pub fn type_ids() -> Vec<TypeId> {
|
2019-03-12 00:49:17 +00:00
|
|
|
use issue_13507::testtypes::*;
|
2015-06-13 13:15:03 -07: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 14:47:21 -04:00
|
|
|
TypeId::of::<dyn FooTrait>(),
|
2015-06-13 13:15:03 -07:00
|
|
|
TypeId::of::<FooStruct>(),
|
|
|
|
TypeId::of::<FooEnum>()
|
|
|
|
]
|
2014-04-14 17:39:52 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {
|
2019-03-12 00:49:17 +00:00
|
|
|
let othercrate = issue_13507::testtypes::type_ids();
|
2014-04-14 17:39:52 -07:00
|
|
|
let thiscrate = type_ids();
|
|
|
|
assert_eq!(thiscrate, othercrate);
|
|
|
|
}
|