0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-24 18:21:15 +01:00
rust/tests/rustdoc/auto-traits.rs
2024-06-24 11:08:41 +02:00

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;