mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-21 19:33:16 +00:00
fix typo
This commit is contained in:
parent
c7e6863843
commit
1450c989ae
@ -180,7 +180,7 @@ const DROP_COPY_SUMMARY: &str = "calls to `std::mem::drop` with a value that imp
|
|||||||
const FORGET_COPY_SUMMARY: &str = "calls to `std::mem::forget` with a value that implements `Copy`. \
|
const FORGET_COPY_SUMMARY: &str = "calls to `std::mem::forget` with a value that implements `Copy`. \
|
||||||
Forgetting a copy leaves the original intact";
|
Forgetting a copy leaves the original intact";
|
||||||
const DROP_NON_DROP_SUMMARY: &str = "call to `std::mem::drop` with a value that does not implement `Drop`. \
|
const DROP_NON_DROP_SUMMARY: &str = "call to `std::mem::drop` with a value that does not implement `Drop`. \
|
||||||
Dropping such a type only extends it's contained lifetimes";
|
Dropping such a type only extends its contained lifetimes";
|
||||||
const FORGET_NON_DROP_SUMMARY: &str = "call to `std::mem::forget` with a value that does not implement `Drop`. \
|
const FORGET_NON_DROP_SUMMARY: &str = "call to `std::mem::forget` with a value that does not implement `Drop`. \
|
||||||
Forgetting such a type is the same as dropping it";
|
Forgetting such a type is the same as dropping it";
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends it's contained lifetimes
|
error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
|
||||||
--> $DIR/drop_non_drop.rs:22:5
|
--> $DIR/drop_non_drop.rs:22:5
|
||||||
|
|
|
|
||||||
LL | drop(Foo);
|
LL | drop(Foo);
|
||||||
@ -11,7 +11,7 @@ note: argument has type `main::Foo`
|
|||||||
LL | drop(Foo);
|
LL | drop(Foo);
|
||||||
| ^^^
|
| ^^^
|
||||||
|
|
||||||
error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends it's contained lifetimes
|
error: call to `std::mem::drop` with a value that does not implement `Drop`. Dropping such a type only extends its contained lifetimes
|
||||||
--> $DIR/drop_non_drop.rs:37:5
|
--> $DIR/drop_non_drop.rs:37:5
|
||||||
|
|
|
|
||||||
LL | drop(Baz(Foo));
|
LL | drop(Baz(Foo));
|
||||||
|
Loading…
Reference in New Issue
Block a user