diff options
| author | xizheyin <xizheyin@smail.nju.edu.cn> | 2025-06-29 15:37:28 +0800 |
|---|---|---|
| committer | xizheyin <xizheyin@smail.nju.edu.cn> | 2025-07-03 23:11:57 +0800 |
| commit | 25ab022f2951318e8ffdec2d8566c3a7d164e00d (patch) | |
| tree | d780e2c6ae40cbeec101760fb27946b99cec73ce /tests/ui/resolve/suggest-path-for-tuple-struct.rs | |
| parent | f19142044f270760ce0ebc03b2c3a44217d8703d (diff) | |
| download | rust-25ab022f2951318e8ffdec2d8566c3a7d164e00d.tar.gz rust-25ab022f2951318e8ffdec2d8566c3a7d164e00d.zip | |
move `tests/ui/resolve/suggest*` to `tests/ui/resolve/suggestions/`
Signed-off-by: xizheyin <xizheyin@smail.nju.edu.cn>
Diffstat (limited to 'tests/ui/resolve/suggest-path-for-tuple-struct.rs')
| -rw-r--r-- | tests/ui/resolve/suggest-path-for-tuple-struct.rs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/tests/ui/resolve/suggest-path-for-tuple-struct.rs b/tests/ui/resolve/suggest-path-for-tuple-struct.rs deleted file mode 100644 index c8bc3e79fe2..00000000000 --- a/tests/ui/resolve/suggest-path-for-tuple-struct.rs +++ /dev/null @@ -1,26 +0,0 @@ -mod module { - pub struct SomeTupleStruct(u8); - pub struct SomeRegularStruct { - foo: u8 - } - - impl SomeTupleStruct { - pub fn new() -> Self { - Self(0) - } - } - impl SomeRegularStruct { - pub fn new() -> Self { - Self { foo: 0 } - } - } -} - -use module::{SomeTupleStruct, SomeRegularStruct}; - -fn main() { - let _ = SomeTupleStruct.new(); - //~^ ERROR expected value, found struct `SomeTupleStruct` - let _ = SomeRegularStruct.new(); - //~^ ERROR expected value, found struct `SomeRegularStruct` -} |
