From 837b550238aa671a591ccf282dddeab29cadb206 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 18 May 2024 04:49:42 +0200 Subject: Merging upstream version 1.71.1+dfsg1. Signed-off-by: Daniel Baumann --- .../auxiliary/missing-assoc-fn-applicable-suggestions.rs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/ui/suggestions/auxiliary/missing-assoc-fn-applicable-suggestions.rs (limited to 'tests/ui/suggestions/auxiliary') diff --git a/tests/ui/suggestions/auxiliary/missing-assoc-fn-applicable-suggestions.rs b/tests/ui/suggestions/auxiliary/missing-assoc-fn-applicable-suggestions.rs new file mode 100644 index 000000000..b026035a6 --- /dev/null +++ b/tests/ui/suggestions/auxiliary/missing-assoc-fn-applicable-suggestions.rs @@ -0,0 +1,16 @@ +pub trait TraitB { + type Item; +} + +pub trait TraitA { + type Type; + + fn bar(_: T) -> Self; + + fn baz(_: T) -> Self + where + T: TraitB, + ::Item: Copy; + + const A: usize; +} -- cgit v1.2.3