about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2016-10-13 13:44:57 +0200
committerFelix S. Klock II <pnkfelix@pnkfx.org>2016-10-13 13:44:57 +0200
commitc239fee2b60c756f88e5dd7abdb945de5b699bea (patch)
tree22efbdb5fb54fc1ff64c85bdd7fb297fc245dcaa /src
parent8dd9493cf291b31ebe2e6c3aa18f259156fd9d89 (diff)
downloadrust-c239fee2b60c756f88e5dd7abdb945de5b699bea.tar.gz
rust-c239fee2b60c756f88e5dd7abdb945de5b699bea.zip
fix typo in diagnostic sample code
Diffstat (limited to 'src')
-rw-r--r--src/librustc_typeck/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs
index 781991e7bb6..16f915c0011 100644
--- a/src/librustc_typeck/diagnostics.rs
+++ b/src/librustc_typeck/diagnostics.rs
@@ -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) { }
 }
 ```