summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/use_self.fixed
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/use_self.fixed')
-rw-r--r--src/tools/clippy/tests/ui/use_self.fixed10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/use_self.fixed b/src/tools/clippy/tests/ui/use_self.fixed
index 0a6166571..3ac621731 100644
--- a/src/tools/clippy/tests/ui/use_self.fixed
+++ b/src/tools/clippy/tests/ui/use_self.fixed
@@ -647,3 +647,13 @@ fn msrv_1_37() {
}
}
}
+
+mod issue_10371 {
+ struct Val<const V: i32> {}
+
+ impl<const V: i32> From<Val<V>> for i32 {
+ fn from(_: Val<V>) -> Self {
+ todo!()
+ }
+ }
+}