Skip to content

Commit c239fee

Browse files
committed
fix typo in diagnostic sample code
1 parent 8dd9493 commit c239fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_typeck/diagnostics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2828,7 +2828,7 @@ that impl must be declared as an `unsafe impl. For example:
28282828
#![feature(dropck_eyepatch)]
28292829
28302830
struct Foo<X>(X);
2831-
impl<#[may_dangle] X> Drop for Foo {
2831+
impl<#[may_dangle] X> Drop for Foo<X> {
28322832
fn drop(&mut self) { }
28332833
}
28342834
```

0 commit comments

Comments
 (0)