mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
28 lines
1.9 KiB
Rust
28 lines
1.9 KiB
Rust
use std::fmt;
|
||
|
||
// This ia file with many multi-byte characters, to try to encourage
|
||
// the compiler to trip on them. The Drop implementation below will
|
||
// need to have its source location embedded into the debug info for
|
||
// the output file.
|
||
|
||
// αααααααααααααααααααααααααααααααααααααααααααααααααααααααααααααααααααααα
|
||
// ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
||
// γγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγγ
|
||
// δδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδδ
|
||
// εεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεεε
|
||
|
||
// ζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζζ
|
||
// ηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηηη
|
||
// θθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθθ
|
||
// ιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιιι
|
||
// κκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκκ
|
||
|
||
pub struct D<X:fmt::Debug>(pub X);
|
||
|
||
impl<X:fmt::Debug> Drop for D<X> {
|
||
fn drop(&mut self) {
|
||
// λλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλλ
|
||
println!("Dropping D({:?})", self.0);
|
||
}
|
||
}
|