Skip to content

Commit 47ed234

Browse files
thomccm-ou-se
authored andcommitted
Indicate the correct error code in the compile_fail block.
Co-authored-by: Mara Bos <[email protected]>
1 parent 72bc4ae commit 47ed234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)