Changing error message for interior mutability, adding ui test

This commit is contained in:
gaurikholkar
2017-06-01 15:46:26 +05:30
parent a032cb89c5
commit bc7eb3bd3a
6 changed files with 39 additions and 9 deletions

View File

@@ -112,7 +112,7 @@ pub trait UnwindSafe {}
/// This is a "helper marker trait" used to provide impl blocks for the
/// `UnwindSafe` trait, for more information see that documentation.
#[stable(feature = "catch_unwind", since = "1.9.0")]
#[rustc_on_unimplemented = "the type {Self} contains interior mutability \
#[rustc_on_unimplemented = "the type {Self} may contain interior mutability \
and a reference may not be safely transferrable \
across a catch_unwind boundary"]
pub trait RefUnwindSafe {}