summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/auto-traits.rs
blob: 93d4bf2f656a3262a86d25a6ffe05adc7a1faedd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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;