blob: 492799abd486cc7f11321b36a43989f4c0789546 [file]
#![feature(no_core)]
#![no_core]
#![feature(optin_builtin_traits, lang_items)]
pub unsafe auto trait Send {}
#[lang = "sync"]
pub unsafe auto trait Sync {}
trait A {
fn a_method(&self) {}
}
fn foo(a: &(dyn A + Send + Sync)) {
a.a_method();
}
struct S;
impl A for S {
fn a_method(&self) {}
}
fn main() {
let s = S;
foo(&s);
}