diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-04-01 21:06:35 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-04-16 23:37:11 +0200 |
| commit | b2192ae157eab3b83d7cbc42d2e08925cbdfd8b6 (patch) | |
| tree | bb68db0f1f320836898202494ad2140ecef13ae3 /src/test/rustdoc-ui | |
| parent | a6fefdecdfff6641111ff6446f73d8364459e1f0 (diff) | |
| download | rust-b2192ae157eab3b83d7cbc42d2e08925cbdfd8b6.tar.gz rust-b2192ae157eab3b83d7cbc42d2e08925cbdfd8b6.zip | |
Add rustdoc-ui test suite
Diffstat (limited to 'src/test/rustdoc-ui')
| -rw-r--r-- | src/test/rustdoc-ui/intra-links-warning.rs | 19 | ||||
| -rw-r--r-- | src/test/rustdoc-ui/intra-links-warning.stderr | 6 |
2 files changed, 25 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/intra-links-warning.rs b/src/test/rustdoc-ui/intra-links-warning.rs new file mode 100644 index 00000000000..36bcc307d55 --- /dev/null +++ b/src/test/rustdoc-ui/intra-links-warning.rs @@ -0,0 +1,19 @@ +// Copyright 2018 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. + +#![deny(warnings)] + +// must-compile-successfully + +//! Test with [Foo::baz], [Bar::foo], [Uniooon::X] + +pub struct Foo { + pub bar: usize, +} diff --git a/src/test/rustdoc-ui/intra-links-warning.stderr b/src/test/rustdoc-ui/intra-links-warning.stderr new file mode 100644 index 00000000000..67d7bdd02b3 --- /dev/null +++ b/src/test/rustdoc-ui/intra-links-warning.stderr @@ -0,0 +1,6 @@ +warning: [Foo::baz] cannot be resolved, ignoring it... + +warning: [Bar::foo] cannot be resolved, ignoring it... + +warning: [Uniooon::X] cannot be resolved, ignoring it... + |
