Debian Codegraph @

gcc/testsuite/rust/compile/rustc_attr1.rs

raw
1 // { dg-additional-options "-w" }
2
3 #![feature(rustc_attrs)]
4
5 pub struct NotI8(i8);
6
7 impl NotI8 {
8 #[inline]
9 #[rustc_inherit_overflow_checks]
10 pub fn add(self, other: NotI8) -> NotI8 {
11 NotI8(self.0 + other.0)
12 }
13 }