File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ // compile-flags:--test --error-format=short
2+ // normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
3+ // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
4+ // failure-status: 101
5+
6+ /// ```rust
7+ /// foo();
8+ /// ```
9+ //~^^ ERROR cannot find function `foo` in this scope
10+ fn foo ( ) {
11+ println ! ( "Hello, world!" ) ;
12+ }
Original file line number Diff line number Diff line change 1+
2+ running 1 test
3+ test $DIR/issue-81662-shortness.rs - foo (line 6) ... FAILED
4+
5+ failures:
6+
7+ ---- $DIR/issue-81662-shortness.rs - foo (line 6) stdout ----
8+ $DIR/issue-81662-shortness.rs:7:1: error[E0425]: cannot find function `foo` in this scope
9+ error: aborting due to previous error
10+ Couldn't compile the test.
11+
12+ failures:
13+ $DIR/issue-81662-shortness.rs - foo (line 6)
14+
15+ test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
16+
You can’t perform that action at this time.
0 commit comments