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 9fe8ae7 commit a7f97a7Copy full SHA for a7f97a7
compiler/rustc_parse/src/parser/ty.rs
@@ -673,7 +673,7 @@ impl<'a> Parser<'a> {
673
/// Is a `dyn B0 + ... + Bn` type allowed here?
674
fn is_explicit_dyn_type(&mut self) -> bool {
675
self.check_keyword(kw::Dyn)
676
- && (!self.token.uninterpolated_span().is_rust_2015()
+ && (self.token.uninterpolated_span().rust_2018()
677
|| self.look_ahead(1, |t| {
678
(t.can_begin_bound() || t.kind == TokenKind::BinOp(token::Star))
679
&& !can_continue_type_after_non_fn_ident(t)
0 commit comments