fix typo in diagnostic sample code
This commit is contained in:
parent
8dd9493cf2
commit
c239fee2b6
1 changed files with 1 additions and 1 deletions
|
|
@ -2828,7 +2828,7 @@ that impl must be declared as an `unsafe impl. For example:
|
|||
#![feature(dropck_eyepatch)]
|
||||
|
||||
struct Foo<X>(X);
|
||||
impl<#[may_dangle] X> Drop for Foo {
|
||||
impl<#[may_dangle] X> Drop for Foo<X> {
|
||||
fn drop(&mut self) { }
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue