Skip to content

Commit

Permalink
Indicate the correct error code in the compile_fail block.
Browse files Browse the repository at this point in the history
Co-authored-by: Mara Bos <[email protected]>
  • Loading branch information
thomcc and m-ou-se authored Mar 29, 2022
1 parent 09d83e2 commit 3ac93ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/std/src/io/error/repr_bitpacked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const TAG_SIMPLE: usize = 0b11;
/// See the module docs for more, this is just a way to hack in a check that we
/// indeed are not unwind-safe.
///
/// ```compile_fail
/// ```compile_fail,E0277
/// fn is_unwind_safe<T: core::panic::UnwindSafe>() {}
/// is_unwind_safe::<std::io::Error>();
/// ```
Expand Down

0 comments on commit 3ac93ab

Please sign in to comment.