Skip to content

Commit 9e5c957

Browse files
committed
---
yaml --- r: 34904 b: refs/heads/master c: 0707780 h: refs/heads/master v: v3
1 parent 40a96a3 commit 9e5c957

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 87b5f05a9db47bfc4dee18d4de609712519395b4
2+
refs/heads/master: 0707780eace5bafa07c114319b9a0d774f196da4
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// compile-flags: -D type-limits
2+
fn main() { }
3+
4+
fn foo() {
5+
let mut i = 100u;
6+
while i >= 0 { //~ ERROR comparison is useless due to type limits
7+
i -= 1;
8+
}
9+
}
10+
11+
fn bar() -> i8 {
12+
return 123;
13+
}
14+
15+
fn baz() -> bool {
16+
128 > bar() //~ ERROR comparison is useless due to type limits
17+
}
18+
19+
fn qux() {
20+
let mut i = 1i8;
21+
while 200 != i { //~ ERROR comparison is useless due to type limits
22+
i += 1;
23+
}
24+
}
25+

0 commit comments

Comments
 (0)