From 277d72e62b0e96e6a49abfc925c87b1073bf5d54 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Sat, 22 Oct 2016 10:00:48 +0800 Subject: Notes/Quirks - UFCS paths --- Notes/Quirks.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Notes') diff --git a/Notes/Quirks.md b/Notes/Quirks.md index 258d095e..e9e8e077 100644 --- a/Notes/Quirks.md +++ b/Notes/Quirks.md @@ -34,4 +34,10 @@ Modules with the same name as primtiive types have interesting lookup quirks - Otherwise, treat it as `::some_name` +UFCS "inherent" paths can resolve to trait items +================================================ +_Unconfirmed_ +`::SOMECONST` can either refer to `impl Foo { const SOMECONST... } or `impl Trait for Foo { const SOMECONST ... }` + + -- cgit v1.2.3