Skip to content

Commit df83dae

Browse files
committed
Move tests\ui\type-param.rs to tests\ui\type-alias\type-param.rs
1 parent 645d0ad commit df83dae

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

tests/ui/type-alias/type-param.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
//@ run-pass
2+
// This test ensures that type aliases can correctly accept and use type parameters.
3+
// Specifically, it checks that a type alias like `type Foo<T> = ...`
4+
// can be instantiated with a type argument without causing a compilation error.
5+
6+
#![allow(dead_code)]
7+
8+
type Foo<T> = extern "C" fn(T) -> bool;
9+
10+
fn main() {}

tests/ui/type-param.rs

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)