rust/src/test/ui/issues/issue-42312.rs

12 lines
212 B
Rust
Raw Normal View History

use std::ops::Deref;
pub trait Foo {
fn baz(_: Self::Target) where Self: Deref {}
2018-07-10 16:10:13 -05:00
//~^ ERROR the size for values of type
}
pub fn f(_: ToString) {}
2018-07-10 16:10:13 -05:00
//~^ ERROR the size for values of type
fn main() { }