diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2018-06-09 16:53:36 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2018-06-19 15:19:13 -0700 |
| commit | 776544f011a6a5beccb7923a261b0dcecdd2396a (patch) | |
| tree | 1324f0d410e2ec3bd75ea5378a79fbc5a39c8a3e /src/test/ui/error-codes | |
| parent | b3a1d56ebe34276916f34ffb0fed34d406f73c55 (diff) | |
| download | rust-776544f011a6a5beccb7923a261b0dcecdd2396a.tar.gz rust-776544f011a6a5beccb7923a261b0dcecdd2396a.zip | |
Add message to `rustc_on_unimplemented` attributes in core
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0277-2.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0277-2.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0277.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0277.stderr | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/error-codes/E0277-2.rs b/src/test/ui/error-codes/E0277-2.rs index 4d1c50002a3..313aa1f706e 100644 --- a/src/test/ui/error-codes/E0277-2.rs +++ b/src/test/ui/error-codes/E0277-2.rs @@ -24,5 +24,5 @@ fn is_send<T: Send>() { } fn main() { is_send::<Foo>(); - //~^ ERROR the trait bound `*const u8: std::marker::Send` is not satisfied in `Foo` + //~^ ERROR `*const u8` cannot be sent between threads safely } diff --git a/src/test/ui/error-codes/E0277-2.stderr b/src/test/ui/error-codes/E0277-2.stderr index bbe04cfc6e1..32776f028b4 100644 --- a/src/test/ui/error-codes/E0277-2.stderr +++ b/src/test/ui/error-codes/E0277-2.stderr @@ -1,4 +1,4 @@ -error[E0277]: the trait bound `*const u8: std::marker::Send` is not satisfied in `Foo` +error[E0277]: `*const u8` cannot be sent between threads safely --> $DIR/E0277-2.rs:26:5 | LL | is_send::<Foo>(); diff --git a/src/test/ui/error-codes/E0277.rs b/src/test/ui/error-codes/E0277.rs index b29e4357015..9ff2ef4da90 100644 --- a/src/test/ui/error-codes/E0277.rs +++ b/src/test/ui/error-codes/E0277.rs @@ -21,7 +21,7 @@ fn some_func<T: Foo>(foo: T) { } fn f(p: Path) { } -//~^ ERROR the trait bound `[u8]: std::marker::Sized` is not satisfied in `std::path::Path` +//~^ ERROR `[u8]` does not have a constant size known at compile-time fn main() { some_func(5i32); diff --git a/src/test/ui/error-codes/E0277.stderr b/src/test/ui/error-codes/E0277.stderr index 477128d7d9f..9cfd42b9c19 100644 --- a/src/test/ui/error-codes/E0277.stderr +++ b/src/test/ui/error-codes/E0277.stderr @@ -1,4 +1,4 @@ -error[E0277]: the trait bound `[u8]: std::marker::Sized` is not satisfied in `std::path::Path` +error[E0277]: `[u8]` does not have a constant size known at compile-time --> $DIR/E0277.rs:23:6 | LL | fn f(p: Path) { } |
