]>
Commit | Line | Data |
---|---|---|
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 |
18 | extern crate trait_superkinds_in_metadata; |
19 | use trait_superkinds_in_metadata::{RequiresRequiresShareAndSend, RequiresShare}; | |
c34b1796 | 20 | use trait_superkinds_in_metadata::RequiresCopy; |
85aaf69f | 21 | use std::marker; |
1a4d82fc | 22 | |
c34b1796 | 23 | #[derive(Copy, Clone)] |
1a4d82fc JJ |
24 | struct X<T>(T); |
25 | ||
1a4d82fc JJ |
26 | impl<T:Sync> RequiresShare for X<T> { } |
27 | ||
28 | impl<T:Sync+Send> RequiresRequiresShareAndSend for X<T> { } | |
29 | ||
30 | impl<T:Copy> RequiresCopy for X<T> { } | |
31 | ||
32 | pub fn main() { } |