]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/doc-comment-in-stmt.rs
Merge commit '0cce3f643bfcbb92d5a1bb71858c9cbaff749d6b' into clippyup
[rust.git] / src / test / ui / parser / doc-comment-in-stmt.rs
1 fn foo() -> bool {
2     false
3     //!self.allow_ty_infer()
4     //~^ ERROR found doc comment
5 }
6
7 fn bar() -> bool {
8     false
9     /*! bar */ //~ ERROR found doc comment
10 }
11
12 fn baz() -> i32 {
13     1 /** baz */ //~ ERROR found doc comment
14 }
15
16 fn quux() -> i32 {
17     2 /*! quux */ //~ ERROR found doc comment
18 }
19
20 fn main() {}