From b2192ae157eab3b83d7cbc42d2e08925cbdfd8b6 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Sun, 1 Apr 2018 21:06:35 +0200 Subject: Add rustdoc-ui test suite --- src/test/rustdoc-ui/intra-links-warning.rs | 19 +++++++++++++++++++ src/test/rustdoc-ui/intra-links-warning.stderr | 6 ++++++ 2 files changed, 25 insertions(+) create mode 100644 src/test/rustdoc-ui/intra-links-warning.rs create mode 100644 src/test/rustdoc-ui/intra-links-warning.stderr (limited to 'src/test') 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 or the MIT license +// , 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... + -- cgit 1.4.1-3-g733a5