Content-Length: 13151 | pFad | https://doc.rust-lang.org/std/pin/../default/../rc/../../../std/../error_codes/././E0788.html

E0788 - Error codes index

Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Error code E0788

Note: this error code is no longer emitted by the compiler.

A #[coverage(off|on)] attribute was found in a position where it is not allowed.

Coverage attributes can be applied to:

  • Function and method declarations that have a body, including trait methods that have a default implementation.
  • Closure expressions, in situations where attributes can be applied to expressions.
  • impl blocks (inherent or trait), and modules.

Example of erroneous code:

unsafe extern "C" {
    #[coverage(off)]
    fn foreign_fn();
}

When using the -C instrument-coverage flag, coverage attributes act as a hint to the compiler that it should instrument or not instrument the corresponding function or enclosed functions. The precise effect of applying a coverage attribute is not guaranteed and may change in future compiler versions.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://doc.rust-lang.org/std/pin/../default/../rc/../../../std/../error_codes/././E0788.html

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy