rust/tests/run-pass/issue-33387.rs

10 lines
124 B
Rust
Raw Normal View History

use std::sync::Arc;
trait Foo {}
impl Foo for [u8; 2] {}
fn main() {
2018-11-26 15:31:53 +01:00
let _val: Arc<Foo + Send> = Arc::new([3, 4]);
}