diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2015-02-12 10:29:52 -0500 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2015-02-18 10:25:28 -0500 |
| commit | 872ce479550a3d805babb0ca409dfc3cf6f52309 (patch) | |
| tree | a1cf314833d1c99b297d59c30a2f1289f111e57e /src/test/compile-fail/lint-missing-doc.rs | |
| parent | ef42c2befd9451cd913de60539487a483ae9deac (diff) | |
| download | rust-872ce479550a3d805babb0ca409dfc3cf6f52309.tar.gz rust-872ce479550a3d805babb0ca409dfc3cf6f52309.zip | |
Fallout: tests. As tests frequently elide things, lots of changes
here. Some of this may have been poorly rebased, though I tried to be careful and preserve the spirit of the test.
Diffstat (limited to 'src/test/compile-fail/lint-missing-doc.rs')
| -rw-r--r-- | src/test/compile-fail/lint-missing-doc.rs | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/test/compile-fail/lint-missing-doc.rs b/src/test/compile-fail/lint-missing-doc.rs index 3b96fd64fa2..73a58741bbb 100644 --- a/src/test/compile-fail/lint-missing-doc.rs +++ b/src/test/compile-fail/lint-missing-doc.rs @@ -47,20 +47,26 @@ fn foo3() {} /// dox pub trait A { /// dox - fn foo(); + fn foo(&self); /// dox - fn foo_with_impl() {} + fn foo_with_impl(&self) {} } + #[allow(missing_docs)] trait B { - fn foo(); - fn foo_with_impl() {} + fn foo(&self); + fn foo_with_impl(&self) {} } + pub trait C { //~ ERROR: missing documentation - fn foo(); //~ ERROR: missing documentation - fn foo_with_impl() {} //~ ERROR: missing documentation + fn foo(&self); //~ ERROR: missing documentation + fn foo_with_impl(&self) {} //~ ERROR: missing documentation +} + +#[allow(missing_docs)] +pub trait D { + fn dummy(&self) { } } -#[allow(missing_docs)] pub trait D {} impl Foo { pub fn foo() {} |
