1 // Regression test for #105138.
2 // This test ensures that the compiler does not add note
3 // for implementation of trait whose inner type is erroneous.
9 impl<T> From<T> for LabelText
10 //~^ ERROR conflicting implementations of trait `From<LabelText>` for type `LabelText` [E0119]
12 T: Into<Cow<'static, str>>,
13 //~^ ERROR cannot find type `Cow` in this scope [E0412]
15 fn from(text: T) -> Self {
16 LabelText::Plain(text.into())