replace reference to ~"string" with box "string"

This commit is contained in:
Conrad Kleinespel 2014-06-21 12:31:10 +02:00
parent 0ae4b97c09
commit 8bcfabaeac

View File

@ -2651,7 +2651,7 @@ fn check_struct_enum_variant(fcx: &FnCtxt,
let error = if vst == ast::ExprVstoreSlice {
"`&\"string\"` has been removed; use `\"string\"` instead"
} else {
"`~\"string\"` has been removed; use `\"string\".to_string()` instead"
"`box \"string\"` has been removed; use `\"string\".to_string()` instead"
};
tcx.sess.span_err(expr.span, error);
ty::mk_err()