Skip to content

Commit c8b1ece

Browse files
committed
rustc: change 'use' to 'add' in error message, fix rust-lang#2994
1 parent 270b508 commit c8b1ece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/kind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ pub fn check_durable(tcx: ty::ctxt, ty: ty::t, sp: span) -> bool {
444444
match ty::get(ty).sty {
445445
ty::ty_param(*) => {
446446
tcx.sess.span_err(sp, "value may contain borrowed \
447-
pointers; use `'static` bound");
447+
pointers; add `'static` bound");
448448
}
449449
_ => {
450450
tcx.sess.span_err(sp, "value may contain borrowed \

0 commit comments

Comments
 (0)