3 #![warn(clippy::from_over_into)]
6 // this should throw an error
7 struct StringWrapper(String);
9 impl Into<StringWrapper> for String {
10 fn into(self) -> StringWrapper {
15 struct SelfType(String);
17 impl Into<SelfType> for String {
18 fn into(self) -> SelfType {
27 const FOO: &'static str = "a";
32 impl Into<SelfKeywords> for X {
33 fn into(self) -> SelfKeywords {
34 let _ = Self::default();
42 struct ExplicitPaths(bool);
44 impl core::convert::Into<bool> for crate::ExplicitPaths {
45 fn into(mut self) -> bool {
46 let in_closure = || self.0;
56 impl From<String> for A {
57 fn from(s: String) -> A {