mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-11 14:33:32 +00:00
derive Copy, Clone, PartialEq, Eq for ImplTraitContext
This commit is contained in:
parent
bd3a097d64
commit
208ffbbe86
@ -246,7 +246,7 @@ pub trait ResolverAstLowering {
|
||||
|
||||
/// Context of `impl Trait` in code, which determines whether it is allowed in an HIR subtree,
|
||||
/// and if so, what meaning it has.
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||
enum ImplTraitContext {
|
||||
/// Treat `impl Trait` as shorthand for a new universal generic parameter.
|
||||
/// Example: `fn foo(x: impl Debug)`, where `impl Debug` is conceptually
|
||||
|
Loading…
Reference in New Issue
Block a user