Convert impl-trait/issue-42479.rs to compile-pass

This commit is contained in:
Jonas Schievink 2018-10-04 14:47:46 +02:00
parent 2e1ac08cb3
commit 62e9a09cfb
2 changed files with 1 additions and 15 deletions

View file

@ -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> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View file

@ -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;