diff options
author | mu001999 <mu001999@outlook.com> | 2023-05-17 16:59:39 +0800 |
---|---|---|
committer | mu001999 <mu001999@outlook.com> | 2023-05-17 16:59:39 +0800 |
commit | db645124221a1e2d3e70b14fbedef019e036c066 (patch) | |
tree | 779d30fa51059b0064d96fc2a0d03effeb2b1080 /tests/ui/resolve/issue-111312.rs | |
parent | bc888958c9e1fdde09791f15d3421bdc3b6d7d29 (diff) | |
download | rust-db645124221a1e2d3e70b14fbedef019e036c066.tar.gz |
Emits E0599 when meeting MyTrait::missing_method
Diffstat (limited to 'tests/ui/resolve/issue-111312.rs')
-rw-r--r-- | tests/ui/resolve/issue-111312.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-111312.rs b/tests/ui/resolve/issue-111312.rs new file mode 100644 index 00000000000..acea37b358b --- /dev/null +++ b/tests/ui/resolve/issue-111312.rs @@ -0,0 +1,11 @@ +// edition: 2021 + +trait Has { + fn has() {} +} + +trait HasNot {} + +fn main() { + HasNot::has(); //~ ERROR +} |