From 4a69ce99fa556da317d63c841666ffc6b6002bed Mon Sep 17 00:00:00 2001 From: Sunjay Varma Date: Tue, 21 Nov 2017 02:30:39 -0500 Subject: [PATCH] Preventing moving out of the trait item kind --- src/libsyntax/feature_gate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs index 09cbd3d591c3..d4b54e896abc 100644 --- a/src/libsyntax/feature_gate.rs +++ b/src/libsyntax/feature_gate.rs @@ -1617,7 +1617,7 @@ fn visit_trait_item(&mut self, ti: &'a ast::TraitItem) { gate_feature_post!(&self, const_fn, ti.span, "const fn is unstable"); } } - ast::TraitItemKind::Type(_, default) => { + ast::TraitItemKind::Type(_, ref default) => { // We use two if statements instead of something like match guards so that both // of these errors can be emitted if both cases apply. if default.is_some() {