rustc: change 'use' to 'add' in error message, fix #2994
This commit is contained in:
parent
a39429887a
commit
2bed5dc528
3 changed files with 3 additions and 3 deletions
|
|
@ -421,7 +421,7 @@ pub fn check_durable(tcx: ty::ctxt, ty: ty::t, sp: span) -> bool {
|
|||
match ty::get(ty).sty {
|
||||
ty::ty_param(*) => {
|
||||
tcx.sess.span_err(sp, "value may contain borrowed \
|
||||
pointers; use `'static` bound");
|
||||
pointers; add `'static` bound");
|
||||
}
|
||||
_ => {
|
||||
tcx.sess.span_err(sp, "value may contain borrowed \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue