Module errors
rustc_
parse
1.84.0-dev
Module errors
Module Items
Structs
Enums
In crate rustc_
parse
Modules
errors
lexer
parser
validate_attr
Macros
maybe_recover_from_interpolated_ty_qpath
maybe_whole
Constants
MACRO_ARGUMENTS
Statics
DEFAULT_LOCALE_RESOURCE
Functions
fake_token_stream_for_crate
fake_token_stream_for_item
new_parser_from_file
new_parser_from_source_file
new_parser_from_source_str
parse_cfg_attr
parse_in
source_file_to_stream
source_str_to_stream
unwrap_or_emit_fatal
rustc_parse
Module
errors
Copy item path
Settings
Help
Summary
Source
Structs
§
AddBox
New
🔒
AddParen
🔒
Ambiguous
Plus
🔒
Ambiguous
Range
Pattern
🔒
Array
Brackets
Instead
OfSpaces
🔒
Array
Brackets
Instead
OfSpaces
Sugg
🔒
Array
Index
InOffset
Of
🔒
Assignment
Else
NotAllowed
🔒
Associated
Static
Item
NotAllowed
🔒
Async
Block
In2015
🔒
Async
Bound
Modifier
In2015
🔒
Async
FnIn2015
🔒
Async
Impl
🔒
Async
Move
Block
In2015
🔒
Async
Move
Order
Incorrect
🔒
AtDot
DotIn
Struct
Pattern
🔒
AtIn
Struct
Pattern
🔒
Attr
After
Generic
🔒
Attr
Without
Generics
🔒
Attribute
OnParam
Type
🔒
Await
Suggestion
🔒
BadAssoc
Type
Bounds
🔒
BadItem
Kind
🔒
BadQ
Path
Stage2
🔒
BadReturn
Type
Notation
Output
🔒
BadType
Plus
🔒
Binder
AndPolarity
🔒
Binder
Before
Modifiers
🔒
Bounds
NotAllowed
OnTrait
Aliases
🔒
BoxNot
Pat
🔒
BoxSyntax
Removed
🔒
Braces
ForStruct
Literal
🔒
Cannot
BeRaw
Ident
🔒
Cannot
BeRaw
Lifetime
🔒
Catch
After
Try
🔒
CfgAttr
BadDelim
🔒
Colon
AsSemi
🔒
Comma
After
Base
Struct
🔒
Comparison
Interpreted
AsGeneric
🔒
Comparison
Operators
Cannot
BeChained
🔒
Comparison
OrShift
Interpreted
AsGeneric
Sugg
🔒
Compound
Assignment
Expression
InLet
🔒
Const
Generic
Without
Braces
🔒
Const
Generic
Without
Braces
Sugg
🔒
Const
Global
Cannot
BeMutable
🔒
Const
LetMutually
Exclusive
🔒
CrDoc
Comment
🔒
Default
NotFollowed
ByItem
🔒
DoCatch
Syntax
Removed
🔒
DocComment
Does
NotDocument
Anything
🔒
DocComment
OnParam
Type
🔒
DotDot
Dot
🔒
DotDot
DotFor
Remaining
Fields
🔒
DotDot
DotRange
ToPattern
NotAllowed
🔒
DotDot
DotRest
Pattern
🔒
DotDot
Range
Attribute
🔒
Double
Colon
InBound
🔒
DynAfter
Mut
🔒
Empty
Exponent
Float
🔒
Enum
Pattern
Instead
OfIdentifier
🔒
Enum
Struct
Mutually
Exclusive
🔒
EqField
Init
🔒
Equals
Struct
Default
🔒
Expected
Binding
Left
OfAt
🔒
Expected
Builtin
Ident
🔒
Expected
Comma
After
Pattern
Field
🔒
Expected
Else
Block
🔒
Expected
EqFor
LetExpr
🔒
Expected
Expression
Found
Let
🔒
Expected
FnPath
Found
FnKeyword
🔒
Expected
Identifier
🔒
Expected
Label
Found
Ident
🔒
Expected
MutOr
Const
InRaw
Pointer
Type
🔒
Expected
Semi
🔒
Expected
Statement
After
Outer
Attr
🔒
Expected
Struct
Field
🔒
Expected
Trait
InTrait
Impl
Found
Type
🔒
ExprR
Arrow
Call
🔒
Extern
Crate
Name
With
Dashes
🔒
Extern
Crate
Name
With
Dashes
Sugg
🔒
Extern
Item
Cannot
BeConst
🔒
Extra
Impl
Keyword
InTrait
Impl
🔒
Field
Expression
With
Generic
🔒
Float
Literal
Requires
Integer
Part
🔒
Float
Literal
Unsupported
Base
🔒
FnPointer
Cannot
BeAsync
🔒
FnPointer
Cannot
BeConst
🔒
FnPtr
With
Generics
🔒
FnPtr
With
Generics
Sugg
🔒
FnTrait
Missing
Paren
🔒
FnTypo
With
Impl
🔒
Found
Expr
Would
BeStmt
🔒
Function
Body
Equals
Expr
🔒
Function
Body
Equals
Expr
Sugg
🔒
Generic
Args
InPat
Require
Turbofish
Syntax
🔒
Generic
Params
Without
Angle
Brackets
🔒
Generic
Params
Without
Angle
Brackets
Sugg
🔒
Generics
InPath
🔒
Guarded
String
Sugg
🔒
Help
Identifier
Starts
With
Number
🔒
IfExpression
LetSome
Sub
🔒
IfExpression
Missing
Condition
🔒
IfExpression
Missing
Then
Block
🔒
InIn
Typo
🔒
Inappropriate
Default
🔒
Inclusive
Range
Extra
Equals
🔒
Inclusive
Range
Match
Arrow
🔒
Inclusive
Range
NoEnd
🔒
Incorrect
Await
🔒
Incorrect
Parens
Trait
Bounds
🔒
Incorrect
Parens
Trait
Bounds
Sugg
🔒
Incorrect
Semicolon
🔒
Incorrect
UseOf
Await
🔒
Incorrect
Visibility
Restriction
🔒
Invalid
Attr
Unsafe
🔒
Invalid
Block
Macro
Segment
🔒
Invalid
Comparison
Operator
🔒
Invalid
Curly
InLet
Else
🔒
Invalid
Digit
Literal
🔒
Invalid
DynKeyword
🔒
Invalid
Expression
InLet
Else
🔒
Invalid
Label
🔒
Invalid
Literal
Suffix
OnTuple
Index
🔒
Invalid
Logical
Operator
🔒
Invalid
Meta
Item
🔒
Invalid
Meta
Item
Quote
Ident
Sugg
🔒
Invalid
Offset
Of
🔒
Invalid
Path
SepIn
FnDefinition
🔒
Invalid
Variable
Declaration
🔒
Keyword
Lifetime
🔒
KwBad
Case
🔒
Labeled
Loop
InBreak
🔒
Leading
Plus
NotSupported
🔒
Left
Arrow
Operator
🔒
Lifetime
After
Mut
🔒
Lifetime
InBorrow
Expression
🔒
Lifetime
InEq
Constraint
🔒
Loop
Else
NotSupported
🔒
Macro
Expands
ToAdt
Field
🔒
Macro
Invocation
Visibility
🔒
Macro
Invocation
With
Qualified
Path
🔒
Macro
Name
Remove
Bang
🔒
Macro
Rules
Missing
Bang
🔒
Macro
Rules
Visibility
🔒
Malformed
CfgAttr
🔒
Malformed
Loop
Label
🔒
Match
ArmBody
Without
Braces
🔒
Maybe
Comparison
🔒
Maybe
Missing
Let
🔒
Meta
BadDelim
🔒
Meta
BadDelim
Sugg
🔒
Mismatched
Closing
Delimiter
🔒
Misplaced
Return
Type
🔒
Missing
Comma
After
Match
Arm
🔒
Missing
Const
Type
🔒
Missing
DotDot
🔒
Missing
Expression
InFor
Loop
🔒
Missing
FnParams
🔒
Missing
ForIn
Trait
Impl
🔒
Missing
InIn
ForLoop
🔒
Missing
Plus
Bounds
🔒
Missing
Semicolon
Before
Array
🔒
Missing
Trait
InTrait
Impl
🔒
Modifier
Lifetime
🔒
Multiple
Where
Clauses
🔒
Need
Plus
After
Trait
Object
Lifetime
🔒
Nested
Adt
🔒
NestedC
Variadic
Type
🔒
NoDigits
Literal
🔒
NoFields
ForFn
Call
🔒
NonString
AbiLiteral
🔒
NotAs
Negation
Operator
🔒
Outer
Attribute
NotAllowed
OnIf
Else
🔒
Paren
Range
Suggestion
🔒
Parentheses
InFor
Head
🔒
Parentheses
InFor
Head
Sugg
🔒
Parentheses
InMatch
Pat
🔒
Parentheses
InMatch
PatSugg
🔒
Parentheses
With
Struct
Fields
🔒
Parenthesized
Lifetime
🔒
Path
Single
Colon
🔒
Path
Triple
Colon
🔒
Pattern
Method
Param
Without
Body
🔒
Pattern
OnWrong
Side
OfAt
🔒
Polarity
AndModifiers
🔒
Question
Mark
InType
🔒
Question
Mark
InType
Sugg
🔒
Recover
Import
AsUse
🔒
Remove
Let
🔒
Remove
Parens
🔒
Repeated
MutIn
Pattern
🔒
Require
Colon
After
Labeled
Expression
🔒
Reserved
String
🔒
Return
Types
UseThin
Arrow
🔒
Self
Argument
Pointer
🔒
Self
Param
NotFirst
🔒
Shift
Interpreted
AsGeneric
🔒
Single
Colon
Import
Path
🔒
Single
Colon
Struct
Type
🔒
Static
With
Generics
🔒
Struct
Literal
Body
Without
Path
🔒
Struct
Literal
Body
Without
Path
Sugg
🔒
Struct
Literal
Needing
Parens
🔒
Struct
Literal
Needing
Parens
Sugg
🔒
Struct
Literal
NotAllowed
Here
🔒
Struct
Literal
NotAllowed
Here
Sugg
🔒
Suffixed
Literal
InAttribute
🔒
Sugg
AddMissing
LetStmt
🔒
Sugg
Escape
Identifier
🔒
Sugg
Remove
Comma
🔒
Switch
RefBox
Order
🔒
Ternary
Operator
🔒
Tilde
AsUnary
Operator
🔒
TooMany
Hashes
🔒
Trailing
Vert
NotAllowed
🔒
Trait
Alias
Cannot
BeAuto
🔒
Trait
Alias
Cannot
BeUnsafe
🔒
Transpose
DynOr
Impl
🔒
Transpose
DynOr
Impl
Sugg
🔒
Underscore
Literal
Suffix
🔒
Unexpected
Const
InGeneric
Param
🔒
Unexpected
Const
Param
Declaration
🔒
Unexpected
Default
Value
ForLifetime
InGeneric
Parameters
🔒
Unexpected
Expression
InPattern
🔒
Unexpected
IfWith
If
🔒
Unexpected
Lifetime
InPattern
🔒
Unexpected
Paren
InRange
Pat
🔒
Unexpected
Paren
InRange
PatSugg
🔒
Unexpected
Self
InGeneric
Parameters
🔒
Unexpected
Token
After
Dot
🔒
Unexpected
Token
After
Label
🔒
Unexpected
Token
After
Label
Sugg
🔒
Unexpected
Vert
Vert
Before
Function
Param
🔒
Unexpected
Vert
Vert
InPattern
🔒
Unknown
Builtin
Construct
🔒
Unknown
Prefix
🔒
Unknown
Token
Null
🔒
Unknown
Token
Repeat
🔒
Unknown
Token
Start
🔒
Unmatched
Angle
🔒
Unmatched
Angle
Brackets
🔒
Unsafe
Attr
Outside
Unsafe
🔒
Unsafe
Attr
Outside
Unsafe
Suggestion
🔒
UseEmpty
Block
NotSemi
🔒
UseEq
Instead
🔒
Visibility
NotFollowed
ByItem
🔒
Where
Clause
Before
Const
Body
🔒
Where
Clause
Before
Const
Body
Sugg
🔒
Where
Clause
Before
Tuple
Struct
Body
🔒
Where
Clause
Before
Tuple
Struct
Body
Sugg
🔒
Where
OnGenerics
🔒
Wrap
InExplicit
Block
🔒
Wrap
InParens
🔒
Wrap
Type
🔒
Enums
§
Ambiguous
Missing
KwFor
Item
Sub
🔒
BadType
Plus
Sub
🔒
Comparison
Operators
Cannot
BeChained
Sugg
🔒
Expected
Identifier
Found
🔒
Expected
Semi
Sugg
🔒
Help
UseLatest
Edition
🔒
IfExpression
Missing
Then
Block
Sub
🔒
Invalid
Comparison
Operator
Sub
🔒
Invalid
Logical
Operator
Sub
🔒
Invalid
MutIn
Pattern
🔒
Invalid
Variable
Declaration
Sub
🔒
Match
ArmBody
Without
Braces
Sugg
🔒
Missing
InIn
ForLoop
Sub
🔒
Missing
Keyword
ForItem
Definition
🔒
More
Than
OneChar
Note
🔒
More
Than
OneChar
Sugg
🔒
NoBrace
Unicode
Sub
🔒
NotAs
Negation
Operator
Sub
🔒
Token
Substitution
🔒
TopLevel
OrPattern
NotAllowed
🔒
TopLevel
OrPattern
NotAllowed
Sugg
🔒
Unescape
Error
🔒
Unexpected
Const
Param
Declaration
Sugg
🔒
Unexpected
Expression
InPattern
Sugg
🔒
Unexpected
Nonterminal
🔒
Unexpected
Token
After
Struct
Name
🔒
Unknown
Prefix
Sugg
🔒
Wrap
InParentheses
🔒