about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-weird-queries.js
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-12-09 23:40:54 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-12-10 17:49:46 +0000
commit5eac9c00561751c78cc3f9dd914600c1ddff827b (patch)
tree2c72e2c806e590bd0d57ac78f613858ec5c52de3 /tests/rustdoc-js-std/parser-weird-queries.js
parent33c245b9e98bc91e18ea1c5033824f4c6f92766f (diff)
downloadrust-5eac9c00561751c78cc3f9dd914600c1ddff827b.tar.gz
rust-5eac9c00561751c78cc3f9dd914600c1ddff827b.zip
Excercise const trait interaction with default fields
Add a test case for using the result of a fn call of an associated
function of a `const` trait in a struct default field.

```rust
struct X;
trait Trait {
    fn value() -> Self;
}
impl const Trait for X {
    fn value() -> Self { X }
}
struct S<T: const Trait> {
    a: T = T::value(),
}
```
Diffstat (limited to 'tests/rustdoc-js-std/parser-weird-queries.js')
0 files changed, 0 insertions, 0 deletions