]>
git.proxmox.com Git - rustc.git/blob - tests/run-make/coverage/loops_branches.rs
1 #![allow(unused_assignments, unused_variables, while_true)]
3 // This test confirms that (1) unexecuted infinite loops are handled correctly by the
4 // InstrumentCoverage MIR pass; and (2) Counter Expressions that subtract from zero can be dropped.
8 impl std
::fmt
::Debug
for DebugTest
{
9 fn fmt(&self, f
: &mut std
::fmt
::Formatter
) -> std
::fmt
::Result
{
34 impl std
::fmt
::Display
for DisplayTest
{
35 fn fmt(&self, f
: &mut std
::fmt
::Formatter
) -> std
::fmt
::Result
{
57 let debug_test
= DebugTest
;
58 println
!("{:?}", debug_test
);
59 let display_test
= DisplayTest
;
60 println
!("{}", display_test
);