Skip to content

Commit 4bd1307

Browse files
committed
---
yaml --- r: 6261 b: refs/heads/master c: 3cc2641 h: refs/heads/master i: 6259: e6c63a3 v: v3
1 parent 0a87d93 commit 4bd1307

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 768306baddc07ca8f43dd20c76f4647727a35cd7
2+
refs/heads/master: 3cc2641fc389dcdf8b348c1a9dbc6dfe48c5547a

trunk/src/comp/middle/ty.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2902,7 +2902,6 @@ fn is_binopable(cx: ctxt, ty: t, op: ast::binop) -> bool {
29022902
ty_machine(ast::ty_f32.) { tycat_float }
29032903
ty_machine(ast::ty_f64.) { tycat_float }
29042904
ty_char. { tycat_int }
2905-
ty_ptr(_) { tycat_int }
29062905
ty_str. { tycat_str }
29072906
ty_vec(_) { tycat_vec }
29082907
ty_rec(_) { tycat_struct }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// error-pattern:binary operation + cannot be applied to type `*i`
2+
3+
fn die() -> *int { (0 as *int) + (0 as *int) }
4+
fn main() { }

0 commit comments

Comments
 (0)