From 6f2c01bcfbdcaa9686ceb37cce29564a2d662828 Mon Sep 17 00:00:00 2001 From: Ayush Kumar Mishra Date: Tue, 10 Mar 2020 08:33:14 +0530 Subject: Add long error explanation for E0739 --- src/librustc_error_codes/error_codes/E0739.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/librustc_error_codes/error_codes/E0739.md (limited to 'src/librustc_error_codes/error_codes') 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..d3016f53a94 --- /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 -- cgit 1.4.1-3-g733a5