2018-01-22 19:04:24 -06:00
|
|
|
//@ aux-build:auto-traits.rs
|
|
|
|
|
2020-11-22 21:54:31 -06:00
|
|
|
#![feature(auto_traits)]
|
2018-01-22 19:04:24 -06:00
|
|
|
|
|
|
|
#![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;
|