Skip to content

Commit 231aea6

Browse files
committed
rustc: Improve astconv error message
1 parent c35b7b5 commit 231aea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/typeck/astconv.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ pub fn ast_ty_to_ty<AC:AstConv, RS:region_scope + Copy + 'static>(
455455
}
456456
_ => {
457457
tcx.sess.span_fatal(ast_ty.span,
458-
"found type name used as a variable");
458+
fmt!("found value name used as a type: %?", a_def));
459459
}
460460
}
461461
}

0 commit comments

Comments
 (0)