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