We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f2a1c9 commit df76442Copy full SHA for df76442
src/libstd/old_io/mod.rs
@@ -252,7 +252,7 @@ use error::Error;
252
use fmt;
253
use isize;
254
use iter::{Iterator, IteratorExt};
255
-use marker::Sized;
+use marker::{PhantomFn, Sized};
256
use mem::transmute;
257
use ops::FnOnce;
258
use option::Option;
@@ -1572,7 +1572,9 @@ pub trait Seek {
1572
/// connections.
1573
///
1574
/// Doing so produces some sort of Acceptor.
1575
-pub trait Listener<T, A: Acceptor<T>> {
+pub trait Listener<T, A: Acceptor<T>>
1576
+ : PhantomFn<T,T> // FIXME should be an assoc type anyhow
1577
+{
1578
/// Spin up the listener and start queuing incoming connections
1579
1580
/// # Error
0 commit comments