]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc/middle/typeck/astconv.rs
auto merge of #8718 : bblum/rust/typeof, r=pcwalton
[rust.git] / src / librustc / middle / typeck / astconv.rs
index 17b4716ad508e8927ab4c5953c0171dfa5db8a57..6ebcf4facc180e43413c5644f7cfcc606c767e7d 100644 (file)
@@ -517,6 +517,9 @@ fn check_path_args(tcx: ty::ctxt,
           }
         }
       }
+      ast::ty_typeof(_e) => {
+          tcx.sess.span_bug(ast_ty.span, "typeof is reserved but unimplemented");
+      }
       ast::ty_infer => {
         // ty_infer should only appear as the type of arguments or return
         // values in a fn_expr, or as the type of local variables.  Both of