]> git.proxmox.com Git - rustc.git/blame - src/test/run-pass/builtin-superkinds-in-metadata.rs
Imported Upstream version 1.0.0~beta
[rustc.git] / src / test / run-pass / builtin-superkinds-in-metadata.rs
CommitLineData
1a4d82fc
JJ
1// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
2// file at the top-level directory of this distribution and at
3// http://rust-lang.org/COPYRIGHT.
4//
5// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8// option. This file may not be copied, modified, or distributed
9// except according to those terms.
10
11
12// aux-build:trait_superkinds_in_metadata.rs
13
14// Tests (correct) usage of trait super-builtin-kinds cross-crate.
15
c34b1796
AL
16// pretty-expanded FIXME #23616
17
1a4d82fc
JJ
18extern crate trait_superkinds_in_metadata;
19use trait_superkinds_in_metadata::{RequiresRequiresShareAndSend, RequiresShare};
c34b1796 20use trait_superkinds_in_metadata::RequiresCopy;
85aaf69f 21use std::marker;
1a4d82fc 22
c34b1796 23#[derive(Copy, Clone)]
1a4d82fc
JJ
24struct X<T>(T);
25
1a4d82fc
JJ
26impl<T:Sync> RequiresShare for X<T> { }
27
28impl<T:Sync+Send> RequiresRequiresShareAndSend for X<T> { }
29
30impl<T:Copy> RequiresCopy for X<T> { }
31
32pub fn main() { }