Skip to content

Commit 95b39e7

Browse files
committed
Added simple test case
1 parent 2a557f6 commit 95b39e7

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

Diff for: tests/ui/traits/issue-139999.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
fn do_something() -> Option<ForgotToImport> {
2+
//~^ cannot find type `ForgotToImport` in this scope [E0412]
3+
None
4+
}
5+
6+
fn main() {}

Diff for: tests/ui/traits/issue-139999.stderr

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0412]: cannot find type `ForgotToImport` in this scope
2+
--> $DIR/issue-139999.rs:1:29
3+
|
4+
LL | fn do_something() -> Option<ForgotToImport> {
5+
| ^^^^^^^^^^^^^^ not found in this scope
6+
7+
error: aborting due to 1 previous error
8+
9+
For more information about this error, try `rustc --explain E0412`.

0 commit comments

Comments
 (0)