Skip to content

Commit 8dd9493

Browse files
committed
placate diagnostic checking tests by fixing sample code in E0569.
1 parent fa7f69c commit 8dd9493

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/librustc_typeck/diagnostics.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2824,6 +2824,9 @@ If an impl has a generic parameter with the `#[may_dangle]` attribute, then
28242824
that impl must be declared as an `unsafe impl. For example:
28252825
28262826
```compile_fail,E0569
2827+
#![feature(generic_param_attrs)]
2828+
#![feature(dropck_eyepatch)]
2829+
28272830
struct Foo<X>(X);
28282831
impl<#[may_dangle] X> Drop for Foo {
28292832
fn drop(&mut self) { }

0 commit comments

Comments
 (0)