mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Fix typo with custom a custom
-> with a custom
This commit is contained in:
parent
fb3ea63d9b
commit
dab89b51ac
@ -21,7 +21,7 @@ static FOO: Foo = Foo { field1: (DropType::A, DropType::A).1 }; // error!
|
||||
The problem here is that if the given type or one of its fields implements the
|
||||
`Drop` trait, this `Drop` implementation cannot be called within a const
|
||||
context since it may run arbitrary, non-const-checked code. To prevent this
|
||||
issue, ensure all values with custom a custom `Drop` implementation escape the
|
||||
issue, ensure all values with a custom `Drop` implementation escape the
|
||||
initializer.
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user