Skip to content

Commit 3ac93ab

Browse files
thomccm-ou-se
andauthoredMar 29, 2022
Indicate the correct error code in the compile_fail block.
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
1 parent 09d83e2 commit 3ac93ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎library/std/src/io/error/repr_bitpacked.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const TAG_SIMPLE: usize = 0b11;
120120
/// See the module docs for more, this is just a way to hack in a check that we
121121
/// indeed are not unwind-safe.
122122
///
123-
/// ```compile_fail
123+
/// ```compile_fail,E0277
124124
/// fn is_unwind_safe<T: core::panic::UnwindSafe>() {}
125125
/// is_unwind_safe::<std::io::Error>();
126126
/// ```

0 commit comments

Comments
 (0)
Please sign in to comment.