Debian Codegraph @

gcc/testsuite/rust/compile/feature_rust_attri1.rs

raw
1
2 pub struct NotI8(i8);
3
4 impl NotI8 {
5 #[rustc_inherit_overflow_checks] //{ dg-error "internal implementation detail" "" { target *-*-* } }
6 pub fn add(self, other: NotI8) -> NotI8 {
7 NotI8(self.0 + other.0)
8 }
9 }
10
11 fn main() -> i32 {
12 0
13 }