Fixes #1735
This commit is contained in:
parent
fb6895836f
commit
81b35d197b
2 changed files with 8 additions and 0 deletions
|
|
@ -36,5 +36,11 @@ fn test_nowarn_3() -> (i32, i32) {
|
|||
(x, y)
|
||||
}
|
||||
|
||||
fn test_nowarn_4() -> i32 {
|
||||
// this should technically warn, but not b/c of let_and_return, but b/c of useless type
|
||||
let x: i32 = 5;
|
||||
x
|
||||
}
|
||||
|
||||
fn main() {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue