about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorSunjay Varma <varma.sunjay@gmail.com>2017-11-21 02:30:39 -0500
committerSunjay Varma <varma.sunjay@gmail.com>2017-12-01 01:26:29 -0500
commit4a69ce99fa556da317d63c841666ffc6b6002bed (patch)
tree4ebc54122476a11193417081a196787e470f4c15 /src/libsyntax
parent223d0917447b561269d102f957dc845572701b57 (diff)
downloadrust-4a69ce99fa556da317d63c841666ffc6b6002bed.tar.gz
rust-4a69ce99fa556da317d63c841666ffc6b6002bed.zip
Preventing moving out of the trait item kind
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/feature_gate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/feature_gate.rs b/src/libsyntax/feature_gate.rs
index 09cbd3d591c..d4b54e896ab 100644
--- a/src/libsyntax/feature_gate.rs
+++ b/src/libsyntax/feature_gate.rs
@@ -1617,7 +1617,7 @@ impl<'a> Visitor<'a> for PostExpansionVisitor<'a> {
                     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() {