repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gccrs: Handle `async` functions in traits
[official-gcc.git]
/
gcc
/
testsuite
/
rust
/
compile
/
implicit_returns_err2.rs
blob
8d9e6e333409979230a9053e3939daba53db0ded
1
fn test(x: i32) -> i32 {
2
// { dg-error "mismatched types, expected .i32. but got .bool." "" { target *-*-* } .-1 }
3
return 1;
4
// { dg-warning "unreachable expression" "" { target *-*-* } .+1 }
5
true
6
}
7
8
fn main() {
9
let a = test(1);
10
}