diff options
| author | Ayush Kumar Mishra <ayush.k.mishra@xcelenergy.com> | 2020-03-10 08:33:14 +0530 |
|---|---|---|
| committer | Ayush Kumar Mishra <ayush.k.mishra@xcelenergy.com> | 2020-03-10 08:33:14 +0530 |
| commit | 6f2c01bcfbdcaa9686ceb37cce29564a2d662828 (patch) | |
| tree | 2c737c2d4c8abb3fed2411cde0c1eb1b3d48f3c9 /src/librustc_error_codes/error_codes | |
| parent | 3dbade652ed8ebac70f903e01f51cd92c4e4302c (diff) | |
| download | rust-6f2c01bcfbdcaa9686ceb37cce29564a2d662828.tar.gz rust-6f2c01bcfbdcaa9686ceb37cce29564a2d662828.zip | |
Add long error explanation for E0739
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0739.md | 13 |
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..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 |
