diff options
Diffstat (limited to 'tests/ui/debuginfo/late-bound-projection.rs')
-rw-r--r-- | tests/ui/debuginfo/late-bound-projection.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/debuginfo/late-bound-projection.rs b/tests/ui/debuginfo/late-bound-projection.rs new file mode 100644 index 000000000..601807845 --- /dev/null +++ b/tests/ui/debuginfo/late-bound-projection.rs @@ -0,0 +1,7 @@ +// build-pass +// compile-flags: -Cdebuginfo=2 --crate-type=rlib +// Fixes issue #94998 + +pub trait Trait {} + +pub fn run(_: &dyn FnOnce(&()) -> Box<dyn Trait + '_>) {} |