fn gate_feature(&self, feature: &str, span: Span, explain: &str) {
if !self.has_feature(feature) {
self.sess.span_err(span, explain);
- self.sess.span_note(span, format!("add \\#[feature({})] to the \
+ self.sess.span_note(span, format!("add \\#![feature({})] to the \
crate attributes to enable",
feature));
}
&& !fcx.tcx().sess.features.default_type_params.get() {
fcx.tcx().sess.span_err(pth.span, "default type parameters are \
experimental and possibly buggy");
- fcx.tcx().sess.span_note(pth.span, "add #[feature(default_type_params)] \
+ fcx.tcx().sess.span_note(pth.span, "add #![feature(default_type_params)] \
to the crate attributes to enable");
}