Skip to content

Commit df76442

Browse files
committed
Fallout: Accepter trait needs phantomdata. This seems like it should
be migrated to an associated type anyway.
1 parent 6f2a1c9 commit df76442

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/libstd/old_io/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ use error::Error;
252252
use fmt;
253253
use isize;
254254
use iter::{Iterator, IteratorExt};
255-
use marker::Sized;
255+
use marker::{PhantomFn, Sized};
256256
use mem::transmute;
257257
use ops::FnOnce;
258258
use option::Option;
@@ -1572,7 +1572,9 @@ pub trait Seek {
15721572
/// connections.
15731573
///
15741574
/// Doing so produces some sort of Acceptor.
1575-
pub trait Listener<T, A: Acceptor<T>> {
1575+
pub trait Listener<T, A: Acceptor<T>>
1576+
: PhantomFn<T,T> // FIXME should be an assoc type anyhow
1577+
{
15761578
/// Spin up the listener and start queuing incoming connections
15771579
///
15781580
/// # Error

0 commit comments

Comments
 (0)