about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-11 14:03:51 +0100
committerGitHub <noreply@github.com>2020-03-11 14:03:51 +0100
commite838383ff895aa0393c358effc5707f1bdf83baf (patch)
treed1cf9152c764edbb19cb1a49d69115ff2cf39c89 /src/librustc_error_codes/error_codes
parent3853da75cbcefc7bb57a853bf3c5406818fb8c45 (diff)
parent761c8c1eefa8cecb1a55628674690c53cc8c473b (diff)
downloadrust-e838383ff895aa0393c358effc5707f1bdf83baf.tar.gz
rust-e838383ff895aa0393c358effc5707f1bdf83baf.zip
Rollup merge of #69876 - ayushmishra2005:doc/61137-add-long-error-code-e0739, r=Dylan-DPC
Add long error explanation for E0739

Add long explanation for the E0739 error code
Part of #61137

r? @GuillaumeGomez
Diffstat (limited to 'src/librustc_error_codes/error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0739.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/librustc_error_codes/error_codes/E0739.md b/src/librustc_error_codes/error_codes/E0739.md
new file mode 100644
index 00000000000..707751066ed
--- /dev/null
+++ b/src/librustc_error_codes/error_codes/E0739.md
@@ -0,0 +1,13 @@
+`#[track_caller]` can not be applied on struct.
+
+Erroneous code example:
+
+```compile_fail,E0739
+#![feature(track_caller)]
+#[track_caller]
+struct Bar {
+    a: u8,
+}
+```
+
+[RFC 2091]: https://github.com/rust-lang/rfcs/blob/master/text/2091-inline-semantic.md