fix typo in diagnostic sample code

This commit is contained in:
Felix S. Klock II 2016-10-13 13:44:57 +02:00
parent 8dd9493cf2
commit c239fee2b6
1 changed files with 1 additions and 1 deletions

View File

@ -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) { }
}
```