diff options
| author | Ralf Jung <post@ralfj.de> | 2020-06-16 10:06:35 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2020-06-16 11:56:54 +0200 |
| commit | 991dfe75950ea4f3f01f2351c4d5ed4dc5b95152 (patch) | |
| tree | 7ec6d523b6d6de8f7f944be6ede783185f119255 /src/test/ui/error-codes | |
| parent | 5fbef22a443e42f8661c9e88426ac80b9bc49674 (diff) | |
| download | rust-991dfe75950ea4f3f01f2351c4d5ed4dc5b95152.tar.gz rust-991dfe75950ea4f3f01f2351c4d5ed4dc5b95152.zip | |
bless all
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0520.rs | 1 | ||||
| -rw-r--r-- | src/test/ui/error-codes/E0520.stderr | 13 |
2 files changed, 12 insertions, 2 deletions
diff --git a/src/test/ui/error-codes/E0520.rs b/src/test/ui/error-codes/E0520.rs index b746ca63590..ead78b7ffa2 100644 --- a/src/test/ui/error-codes/E0520.rs +++ b/src/test/ui/error-codes/E0520.rs @@ -1,4 +1,5 @@ #![feature(specialization)] +//~^ WARN the feature `specialization` is incomplete trait SpaceLlama { fn fly(&self); diff --git a/src/test/ui/error-codes/E0520.stderr b/src/test/ui/error-codes/E0520.stderr index 72fc85ab1e7..1041ccee937 100644 --- a/src/test/ui/error-codes/E0520.stderr +++ b/src/test/ui/error-codes/E0520.stderr @@ -1,5 +1,14 @@ +warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes + --> $DIR/E0520.rs:1:12 + | +LL | #![feature(specialization)] + | ^^^^^^^^^^^^^^ + | + = note: `#[warn(incomplete_features)]` on by default + = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information + error[E0520]: `fly` specializes an item from a parent `impl`, but that item is not marked `default` - --> $DIR/E0520.rs:16:5 + --> $DIR/E0520.rs:17:5 | LL | / impl<T: Clone> SpaceLlama for T { LL | | fn fly(&self) {} @@ -11,6 +20,6 @@ LL | default fn fly(&self) {} | = note: to specialize, `fly` in the parent `impl` must be marked `default` -error: aborting due to previous error +error: aborting due to previous error; 1 warning emitted For more information about this error, try `rustc --explain E0520`. |
