Special case type aliases from impl trait in const/static types
This commit is contained in:
parent
3abdb08351
commit
cdbb0ff8ca
5 changed files with 13 additions and 6 deletions
|
@ -2291,7 +2291,9 @@ pub enum OpaqueTyOrigin {
|
|||
AsyncFn,
|
||||
/// `let _: impl Trait = ...`
|
||||
Binding,
|
||||
/// Impl trait in type aliases, consts, statics, bounds.
|
||||
/// type aliases: `type Foo = impl Trait;`
|
||||
TyAlias,
|
||||
/// Impl trait consts, statics, bounds.
|
||||
Misc,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue