rust/tests/crashes/137187.rs
Deadbeef cf91330b6b collapse constness query match logic
We already have the HIR node data, so no need for asking `def_kind` again.
2025-11-29 20:00:40 -05:00

10 lines
168 B
Rust

//@ known-bug: #137187
use std::ops::Add;
const trait A where
*const Self: Add,
{
fn b(c: *const Self) -> <*const Self as Add>::Output {
c + c
}
}