diff --git a/src/librustc/middle/typeck/check/mod.rs b/src/librustc/middle/typeck/check/mod.rs index e1a549bcc7b2..43f609dd2f0a 100644 --- a/src/librustc/middle/typeck/check/mod.rs +++ b/src/librustc/middle/typeck/check/mod.rs @@ -2696,7 +2696,7 @@ fn check_instantiable(tcx: ty::ctxt, if !ty::is_instantiable(tcx, item_ty) { tcx.sess.span_err(sp, fmt!("this type cannot be instantiated \ without an instance of itself; \ - consider using `option<%s>`", + consider using `Option<%s>`", ppaux::ty_to_str(tcx, item_ty))); } }