derive Copy, Clone, PartialEq, Eq for ImplTraitContext
This commit is contained in:
parent
bd3a097d64
commit
208ffbbe86
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ pub trait ResolverAstLowering {
|
||||||
|
|
||||||
/// Context of `impl Trait` in code, which determines whether it is allowed in an HIR subtree,
|
/// Context of `impl Trait` in code, which determines whether it is allowed in an HIR subtree,
|
||||||
/// and if so, what meaning it has.
|
/// and if so, what meaning it has.
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||||
enum ImplTraitContext {
|
enum ImplTraitContext {
|
||||||
/// Treat `impl Trait` as shorthand for a new universal generic parameter.
|
/// Treat `impl Trait` as shorthand for a new universal generic parameter.
|
||||||
/// Example: `fn foo(x: impl Debug)`, where `impl Debug` is conceptually
|
/// Example: `fn foo(x: impl Debug)`, where `impl Debug` is conceptually
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue