about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-03-21 21:57:38 +0000
committerbors <bors@rust-lang.org>2020-03-21 21:57:38 +0000
commitc6b172f7885cb83842fa15e4b0e2ff1647aebb40 (patch)
treec9c762cf63210999b8cdc8630b98efa02bc8a6ee /src/librustc_error_codes/error_codes
parent38114ff16e7856f98b2b4be7ab4cd29b38bed59a (diff)
parent17e6ed1fd97980146f63fb65e83da8702f294d31 (diff)
downloadrust-c6b172f7885cb83842fa15e4b0e2ff1647aebb40.tar.gz
rust-c6b172f7885cb83842fa15e4b0e2ff1647aebb40.zip
Auto merge of #70246 - Dylan-DPC:rollup-vt9wex2, r=Dylan-DPC
Rollup of 10 pull requests

Successful merges:

 - #70003 (symbol_names: treat ReifyShim like VtableShim.)
 - #70051 (Allow `hir().find` to return `None`)
 - #70126 (Fix ICE caused by truncating a negative ZST enum discriminant)
 - #70197 (For issue 53957: revise unit test to focus on underlying bug of 23076.)
 - #70215 (ast: Compress `AttrId` from `usize` to `u32`)
 - #70218 (Fix deprecated Error.description() usage in docs)
 - #70228 (Remove CARGO_BUILD_TARGET from bootstrap.py)
 - #70231 (Add explanation message for E0224)
 - #70232 (Tweak wording for std::io::Read::read function)
 - #70238 (Add a test for out-of-line module passed through a proc macro)

Failed merges:

r? @ghost
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0224.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0224.md b/src/librustc_error_codes/error_codes/E0224.md
new file mode 100644
index 00000000000..fd89c1d5256
--- /dev/null
+++ b/src/librustc_error_codes/error_codes/E0224.md
@@ -0,0 +1,15 @@
+A trait object was declaired with no traits.
+
+Erroneous code example:
+
+```compile_fail,E0224
+type Foo = dyn 'static +;
+```
+
+Rust does not currently support this.
+
+To solve ensure the the trait object has at least one trait:
+
+```
+type Foo = dyn 'static + Copy;
+```