rust/src/test/run-pass/builtin-superkinds-in-metadata.rs

22 lines
531 B
Rust
Raw Normal View History

#![allow(unused_imports)]
2013-08-16 17:21:02 -05:00
// aux-build:trait_superkinds_in_metadata.rs
2013-08-19 16:15:25 -05:00
// Tests (correct) usage of trait super-builtin-kinds cross-crate.
extern crate trait_superkinds_in_metadata;
use trait_superkinds_in_metadata::{RequiresRequiresShareAndSend, RequiresShare};
use trait_superkinds_in_metadata::RequiresCopy;
use std::marker;
2013-08-16 17:21:02 -05:00
2015-03-30 08:38:27 -05:00
#[derive(Copy, Clone)]
2013-08-16 17:21:02 -05:00
struct X<T>(T);
impl<T:Sync> RequiresShare for X<T> { }
2013-08-16 17:21:02 -05:00
impl<T:Sync+Send> RequiresRequiresShareAndSend for X<T> { }
impl<T:Copy> RequiresCopy for X<T> { }
pub fn main() { }