mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 22:18:23 +03:00
10 lines
128 B
Rust
10 lines
128 B
Rust
use std::sync::Arc;
|
|
|
|
trait Foo {}
|
|
|
|
impl Foo for [u8; 2] {}
|
|
|
|
fn main() {
|
|
let _val: Arc<dyn Foo + Send> = Arc::new([3, 4]);
|
|
}
|