Skip to content

Commit d713174

Browse files
Add tests
1 parent 4a0cc88 commit d713174

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn function<T: PartialEq>() {
2+
foo == 2; //~ ERROR cannot find value `foo` in this scope [E0425]
3+
}
4+
5+
fn main() {
6+
7+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
error[E0425]: cannot find value `foo` in this scope
2+
--> $DIR/dont-match-error-ty-with-calller-supplied-obligation-issue-121941.rs:2:5
3+
|
4+
LL | foo == 2;
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 E0425`.

0 commit comments

Comments
 (0)