E073[6-8] include failing code examples.

This commit is contained in:
Adam Perry 2019-10-04 14:19:05 -07:00
parent 8992c30db4
commit bdc4bd142b
2 changed files with 43 additions and 4 deletions

View file

@ -2078,6 +2078,16 @@ rejected in your own crates.
E0736: r##"
#[track_caller] and #[naked] cannot be applied to the same function.
Erroneous code example:
```compile_fail,E0736
#![feature(track_caller)]
#[naked]
#[track_caller]
fn foo() {}
```
This is primarily due to ABI incompatibilities between the two attributes.
See [RFC 2091] for details on this and other limitations.