diff options
| author | bohan <bohan-zhang@foxmail.com> | 2024-06-23 23:44:22 +0800 |
|---|---|---|
| committer | bohan <bohan-zhang@foxmail.com> | 2024-06-23 23:44:22 +0800 |
| commit | 594fa01aba7aa48990ffb673eb6d46be239f0193 (patch) | |
| tree | 65f0c524ebb2b0402c9a10168db3e0e3f2bb92ba /tests/ui/suggestions/missing-impl-trait-block-but-not-ascii.rs | |
| parent | c3d7fb398569407350abe044e786bc7890c90397 (diff) | |
| download | rust-594fa01aba7aa48990ffb673eb6d46be239f0193.tar.gz rust-594fa01aba7aa48990ffb673eb6d46be239f0193.zip | |
not use offset when there is not ends with brace
Diffstat (limited to 'tests/ui/suggestions/missing-impl-trait-block-but-not-ascii.rs')
| -rw-r--r-- | tests/ui/suggestions/missing-impl-trait-block-but-not-ascii.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/suggestions/missing-impl-trait-block-but-not-ascii.rs b/tests/ui/suggestions/missing-impl-trait-block-but-not-ascii.rs new file mode 100644 index 00000000000..ddb6bd1e902 --- /dev/null +++ b/tests/ui/suggestions/missing-impl-trait-block-but-not-ascii.rs @@ -0,0 +1,13 @@ +// issue#126764 + +struct S; + +trait T { + fn f(); +} +impl T for S; +//~^ ERROR: unknown start of token +//~| ERROR: expected `{}` +//~| ERROR: not all trait items implemented, missing: `f` + +fn main() {} |
