1 error[E0405]: cannot find trait `T` in this scope
2 --> $DIR/issue-21221-2.rs:28:6
4 28 | impl T for Foo { }
5 | ^ not found in this scope
7 = help: possible candidate is found in another module, you can import it into scope:
10 error: main function not found
12 error: cannot continue compilation due to previous error