diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-22 10:00:48 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-22 16:00:27 +0800 |
commit | 277d72e62b0e96e6a49abfc925c87b1073bf5d54 (patch) | |
tree | 361970ad4673854549a319588b8a03018791b385 /Notes | |
parent | 994526e384a5ee99a75aaba2b151616eac9e0b0e (diff) | |
download | mrust-277d72e62b0e96e6a49abfc925c87b1073bf5d54.tar.gz |
Notes/Quirks - UFCS paths
Diffstat (limited to 'Notes')
-rw-r--r-- | Notes/Quirks.md | 6 |
1 files changed, 6 insertions, 0 deletions
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 `<u32 as ?>::some_name` +UFCS "inherent" paths can resolve to trait items +================================================ +_Unconfirmed_ +`<Foo>::SOMECONST` can either refer to `impl Foo { const SOMECONST... } or `impl Trait for Foo { const SOMECONST ... }` + + |