blob: 7661bb574613bef4f1596c9b424b09380b5f25e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// build-fail
#![feature(rustc_attrs)]
// Ensure that non-object-safe methods in Iterator does not generate
// vtable entries.
#[rustc_dump_vtable]
trait A: Iterator {}
//~^ error vtable
impl<T> A for T where T: Iterator {}
fn foo(_a: &mut dyn A<Item=u8>) {
}
fn main() {
foo(&mut vec![0, 1, 2, 3].into_iter());
}
|