diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-01-20 23:24:20 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2017-02-03 11:08:20 +0100 |
| commit | 44b59be0f2ad38c39b67a6c8ebfe826c4c30cbd9 (patch) | |
| tree | 76e8ef2503c5668fd861952d42ed58baafc4a762 /src/test/rustdoc | |
| parent | aea6f3234af12f0a7c098c2a80803061aba76608 (diff) | |
| download | rust-44b59be0f2ad38c39b67a6c8ebfe826c4c30cbd9.tar.gz rust-44b59be0f2ad38c39b67a6c8ebfe826c4c30cbd9.zip | |
Move test from bootstrap to compiletest
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/test_option_check/test.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/rustdoc/test_option_check/test.rs b/src/test/rustdoc/test_option_check/test.rs new file mode 100644 index 00000000000..772d258bc80 --- /dev/null +++ b/src/test/rustdoc/test_option_check/test.rs @@ -0,0 +1,27 @@ +// Copyright 2017 The Rust Project Developers. See the COPYRIGHT +// file at the top-level directory of this distribution and at +// http://rust-lang.org/COPYRIGHT. +// +// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or +// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license +// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-flags:--test +// check-stdout + +/// This is a Foo; +/// +/// ``` +/// println!("baaaaaar"); +/// ``` +#[unstable] +pub struct Foo; + +/// This is a Bar; +/// +/// ``` +/// println!("fooooo"); +/// ``` +pub struct Bar; |
