Rust: More type inference tests

This commit is contained in:
Tom Hvitved
2025-10-28 13:32:54 +01:00
parent 3c663d8ebf
commit f395162afd
16 changed files with 1415 additions and 1390 deletions

View File

@@ -266,7 +266,7 @@ class _:
@annotate(MatchArm)
@rust.doc_test_signature("(x: i32) -> i32")
@rust.doc_test_signature("(x: i32)")
class _:
"""
A match arm. For example:
@@ -1738,7 +1738,7 @@ class _:
For example:
```rust
fn foo() -> i32 {}
fn foo() -> i32 { 0 }
// ^^^^^^
```
"""
@@ -2466,7 +2466,7 @@ class _:
For example:
```rust
pub fn hello<'a, T, const N: usize>() -> impl Sized + use<'a, T, N> {}
pub fn hello<'a, T, const N: usize>() -> impl Sized + use<'a, T, N> { 0 }
// ^^^^^^^^
```
"""