File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,10 @@ fn bar() { foo(); }
2222```
2323
2424This should be read as
25- > If this (` foo ` ) is changed, then this (i.e. ` bar ` )'s TypeckTables would need
26- to be changed. Also, this
25+ > If this (` foo ` ) is changed, then this (i.e. ` bar ` )'s TypeckTables would need to be changed.
26+
27+ Technically, what occurs is that the test is expected to emit the string "OK" on
28+ stderr, associated to this line.
2729
2830You could also add the lines
2931
@@ -33,7 +35,8 @@ fn baz() { }
3335```
3436
3537Whose meaning is
36- > If ` foo ` is changed, then ` baz ` 's TypeckTables does not need to be changed, as there is no path.
38+ > If ` foo ` is changed, then ` baz ` 's TypeckTables does not need to be changed.
39+ > The macro must emit an error, and the error message must contains "no path".
3740
3841Recall that the ` //~ ERROR OK ` is a comment from the point of view of the Rust
3942code we test, but is meaningful from the point of view of the test itself.
You can’t perform that action at this time.
0 commit comments