mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-13 18:43:19 +00:00
14 lines
293 B
Rust
14 lines
293 B
Rust
//@ aux-build:auto-traits.rs
|
|
|
|
#![feature(auto_traits)]
|
|
|
|
#![crate_name = "foo"]
|
|
|
|
extern crate auto_traits;
|
|
|
|
//@ has 'foo/trait.Foo.html' '//pre' 'pub unsafe auto trait Foo'
|
|
pub unsafe auto trait Foo {}
|
|
|
|
//@ has 'foo/trait.Bar.html' '//pre' 'pub unsafe auto trait Bar'
|
|
pub use auto_traits::Bar;
|