Convert impl-trait/issue-42479.rs to compile-pass
This commit is contained in:
parent
2e1ac08cb3
commit
62e9a09cfb
2 changed files with 1 additions and 15 deletions
|
|
@ -1,14 +0,0 @@
|
|||
warning: struct is never constructed: `Foo`
|
||||
--> $DIR/issue-42479.rs:15:1
|
||||
|
|
||||
LL | struct Foo {
|
||||
| ^^^^^^^^^^
|
||||
|
|
||||
= note: #[warn(dead_code)] on by default
|
||||
|
||||
warning: method is never used: `inside`
|
||||
--> $DIR/issue-42479.rs:20:5
|
||||
|
|
||||
LL | fn inside(&self) -> impl Iterator<Item = &i32> {
|
||||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// run-pass
|
||||
// compile-pass
|
||||
|
||||
use std::iter::once;
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue