mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 21:58:14 +00:00
10 lines
167 B
Rust
10 lines
167 B
Rust
//@ known-bug: #137187
|
|
use std::ops::Add;
|
|
trait A where
|
|
*const Self: Add,
|
|
{
|
|
const fn b(c: *const Self) -> <*const Self as Add>::Output {
|
|
c + c
|
|
}
|
|
}
|