diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-05 16:28:15 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-05-05 17:47:18 +0200 |
| commit | ff971d001d3440fa609f8c5370432c6b77a5ac6e (patch) | |
| tree | cd8e72cfa130743d02e8a44273453f8943c7ed90 /tests/rustdoc/auto/auto-traits.rs | |
| parent | b374996ab8d3d8a10fdf1ffcf2b1c3de3fdbbf64 (diff) | |
| download | rust-ff971d001d3440fa609f8c5370432c6b77a5ac6e.tar.gz rust-ff971d001d3440fa609f8c5370432c6b77a5ac6e.zip | |
Created `tests/rustdoc/auto` subfolder to limit number of files at the top level
Diffstat (limited to 'tests/rustdoc/auto/auto-traits.rs')
| -rw-r--r-- | tests/rustdoc/auto/auto-traits.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/rustdoc/auto/auto-traits.rs b/tests/rustdoc/auto/auto-traits.rs new file mode 100644 index 00000000000..dce406ed3e3 --- /dev/null +++ b/tests/rustdoc/auto/auto-traits.rs @@ -0,0 +1,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; |
