We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rust_2018
!is_rust_2015
1 parent b96c899 commit 7f8bf60Copy full SHA for 7f8bf60
compiler/rustc_parse/src/parser/ty.rs
@@ -702,7 +702,7 @@ impl<'a> Parser<'a> {
702
/// Is a `dyn B0 + ... + Bn` type allowed here?
703
fn is_explicit_dyn_type(&mut self) -> bool {
704
self.check_keyword(kw::Dyn)
705
- && (!self.token.uninterpolated_span().is_rust_2015()
+ && (self.token.uninterpolated_span().rust_2018()
706
|| self.look_ahead(1, |t| {
707
(t.can_begin_bound() || t.kind == TokenKind::BinOp(token::Star))
708
&& !can_continue_type_after_non_fn_ident(t)
0 commit comments