]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | // run-pass |
0bf4aa26 | 2 | #![allow(dead_code)] |
c34b1796 | 3 | // pretty-expanded FIXME #23616 |
2c00a5a8 | 4 | // ignore-cloudabi no std::fs |
c34b1796 | 5 | |
c34b1796 AL |
6 | use std::{fs, net}; |
7 | ||
8 | fn assert_both<T: Send + Sync>() {} | |
9 | fn assert_send<T: Send>() {} | |
10 | ||
11 | fn main() { | |
12 | assert_both::<fs::File>(); | |
13 | assert_both::<fs::Metadata>(); | |
14 | assert_both::<fs::ReadDir>(); | |
15 | assert_both::<fs::DirEntry>(); | |
c34b1796 AL |
16 | assert_both::<fs::OpenOptions>(); |
17 | assert_both::<fs::Permissions>(); | |
18 | ||
19 | assert_both::<net::TcpStream>(); | |
20 | assert_both::<net::TcpListener>(); | |
21 | assert_both::<net::UdpSocket>(); | |
22 | assert_both::<net::SocketAddr>(); | |
23 | assert_both::<net::SocketAddrV4>(); | |
24 | assert_both::<net::SocketAddrV6>(); | |
25 | assert_both::<net::Ipv4Addr>(); | |
26 | assert_both::<net::Ipv6Addr>(); | |
27 | } |