rust/tests/ui/issues/issue-42312.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
216 B
Rust
Raw Normal View History

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