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